Skip to content

Commit

Permalink
update processor helper tests + stability
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
  • Loading branch information
codeboten committed Sep 13, 2024
1 parent e135874 commit 2fed326
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion processor/processorhelper/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Number of items passed to the processor. [alpha]

### otelcol_processor_outgoing_items

Number of items emitted from the processor.
Number of items emitted from the processor. [alpha]

| Unit | Metric Type | Value Type | Monotonic |
| ---- | ----------- | ---------- | --------- |
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions processor/processorhelper/logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func TestLogsProcessor_RecordInOut(t *testing.T) {
testTelemetry.assertMetrics(t, []metricdata.Metrics{
{
Name: "otelcol_processor_incoming_items",
Description: "Number of items passed to the processor.",
Description: "Number of items passed to the processor. [alpha]",
Unit: "{items}",
Data: metricdata.Sum[int64]{
Temporality: metricdata.CumulativeTemporality,
Expand All @@ -112,7 +112,7 @@ func TestLogsProcessor_RecordInOut(t *testing.T) {
},
{
Name: "otelcol_processor_outgoing_items",
Description: "Number of items emitted from the processor.",
Description: "Number of items emitted from the processor. [alpha]",
Unit: "{items}",
Data: metricdata.Sum[int64]{
Temporality: metricdata.CumulativeTemporality,
Expand Down
2 changes: 2 additions & 0 deletions processor/processorhelper/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ telemetry:

processor_outgoing_items:
enabled: true
stability:
level: alpha
description: Number of items emitted from the processor.
unit: "{items}"
sum:
Expand Down
4 changes: 2 additions & 2 deletions processor/processorhelper/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func TestMetricsProcessor_RecordInOut(t *testing.T) {
testTelemetry.assertMetrics(t, []metricdata.Metrics{
{
Name: "otelcol_processor_incoming_items",
Description: "Number of items passed to the processor.",
Description: "Number of items passed to the processor. [alpha]",
Unit: "{items}",
Data: metricdata.Sum[int64]{
Temporality: metricdata.CumulativeTemporality,
Expand All @@ -113,7 +113,7 @@ func TestMetricsProcessor_RecordInOut(t *testing.T) {
},
{
Name: "otelcol_processor_outgoing_items",
Description: "Number of items emitted from the processor.",
Description: "Number of items emitted from the processor. [alpha]",
Unit: "{items}",
Data: metricdata.Sum[int64]{
Temporality: metricdata.CumulativeTemporality,
Expand Down
4 changes: 2 additions & 2 deletions processor/processorhelper/traces_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func TestTracesProcessor_RecordInOut(t *testing.T) {
testTelemetry.assertMetrics(t, []metricdata.Metrics{
{
Name: "otelcol_processor_incoming_items",
Description: "Number of items passed to the processor.",
Description: "Number of items passed to the processor. [alpha]",
Unit: "{items}",
Data: metricdata.Sum[int64]{
Temporality: metricdata.CumulativeTemporality,
Expand All @@ -113,7 +113,7 @@ func TestTracesProcessor_RecordInOut(t *testing.T) {
},
{
Name: "otelcol_processor_outgoing_items",
Description: "Number of items emitted from the processor.",
Description: "Number of items emitted from the processor. [alpha]",
Unit: "{items}",
Data: metricdata.Sum[int64]{
Temporality: metricdata.CumulativeTemporality,
Expand Down

0 comments on commit 2fed326

Please sign in to comment.