From 888be8d54fd191e04432e6a6f4e45d64c55c7732 Mon Sep 17 00:00:00 2001 From: ChrsMark Date: Thu, 25 Sep 2025 17:33:56 +0300 Subject: [PATCH] [chore][groupbyattrsprocessor] Add stability level per metric Signed-off-by: ChrsMark --- .../groupbyattrsprocessor/documentation.md | 72 +++++++++---------- .../internal/metadata/generated_telemetry.go | 18 ++--- .../metadatatest/generated_telemetrytest.go | 18 ++--- processor/groupbyattrsprocessor/metadata.yaml | 18 +++++ 4 files changed, 72 insertions(+), 54 deletions(-) diff --git a/processor/groupbyattrsprocessor/documentation.md b/processor/groupbyattrsprocessor/documentation.md index 274b703e7fa19..f2f145d834e33 100644 --- a/processor/groupbyattrsprocessor/documentation.md +++ b/processor/groupbyattrsprocessor/documentation.md @@ -8,72 +8,72 @@ The following telemetry is emitted by this component. ### otelcol_processor_groupbyattrs_log_groups -Distribution of groups extracted for logs +Distribution of groups extracted for logs [development] -| Unit | Metric Type | Value Type | -| ---- | ----------- | ---------- | -| 1 | Histogram | Int | +| Unit | Metric Type | Value Type | Stability | +| ---- | ----------- | ---------- | --------- | +| 1 | Histogram | Int | development | ### otelcol_processor_groupbyattrs_metric_groups -Distribution of groups extracted for metrics +Distribution of groups extracted for metrics [development] -| Unit | Metric Type | Value Type | -| ---- | ----------- | ---------- | -| 1 | Histogram | Int | +| Unit | Metric Type | Value Type | Stability | +| ---- | ----------- | ---------- | --------- | +| 1 | Histogram | Int | development | ### otelcol_processor_groupbyattrs_num_grouped_logs -Number of logs that had attributes grouped +Number of logs that had attributes grouped [development] -| Unit | Metric Type | Value Type | Monotonic | -| ---- | ----------- | ---------- | --------- | -| 1 | Sum | Int | true | +| Unit | Metric Type | Value Type | Monotonic | Stability | +| ---- | ----------- | ---------- | --------- | --------- | +| 1 | Sum | Int | true | development | ### otelcol_processor_groupbyattrs_num_grouped_metrics -Number of metrics that had attributes grouped +Number of metrics that had attributes grouped [development] -| Unit | Metric Type | Value Type | Monotonic | -| ---- | ----------- | ---------- | --------- | -| 1 | Sum | Int | true | +| Unit | Metric Type | Value Type | Monotonic | Stability | +| ---- | ----------- | ---------- | --------- | --------- | +| 1 | Sum | Int | true | development | ### otelcol_processor_groupbyattrs_num_grouped_spans -Number of spans that had attributes grouped +Number of spans that had attributes grouped [development] -| Unit | Metric Type | Value Type | Monotonic | -| ---- | ----------- | ---------- | --------- | -| 1 | Sum | Int | true | +| Unit | Metric Type | Value Type | Monotonic | Stability | +| ---- | ----------- | ---------- | --------- | --------- | +| 1 | Sum | Int | true | development | ### otelcol_processor_groupbyattrs_num_non_grouped_logs -Number of logs that did not have attributes grouped +Number of logs that did not have attributes grouped [development] -| Unit | Metric Type | Value Type | Monotonic | -| ---- | ----------- | ---------- | --------- | -| 1 | Sum | Int | true | +| Unit | Metric Type | Value Type | Monotonic | Stability | +| ---- | ----------- | ---------- | --------- | --------- | +| 1 | Sum | Int | true | development | ### otelcol_processor_groupbyattrs_num_non_grouped_metrics -Number of metrics that did not have attributes grouped +Number of metrics that did not have attributes grouped [development] -| Unit | Metric Type | Value Type | Monotonic | -| ---- | ----------- | ---------- | --------- | -| 1 | Sum | Int | true | +| Unit | Metric Type | Value Type | Monotonic | Stability | +| ---- | ----------- | ---------- | --------- | --------- | +| 1 | Sum | Int | true | development | ### otelcol_processor_groupbyattrs_num_non_grouped_spans -Number of spans that did not have attributes grouped +Number of spans that did not have attributes grouped [development] -| Unit | Metric Type | Value Type | Monotonic | -| ---- | ----------- | ---------- | --------- | -| 1 | Sum | Int | true | +| Unit | Metric Type | Value Type | Monotonic | Stability | +| ---- | ----------- | ---------- | --------- | --------- | +| 1 | Sum | Int | true | development | ### otelcol_processor_groupbyattrs_span_groups -Distribution of groups extracted for spans +Distribution of groups extracted for spans [development] -| Unit | Metric Type | Value Type | -| ---- | ----------- | ---------- | -| 1 | Histogram | Int | +| Unit | Metric Type | Value Type | Stability | +| ---- | ----------- | ---------- | --------- | +| 1 | Histogram | Int | development | diff --git a/processor/groupbyattrsprocessor/internal/metadata/generated_telemetry.go b/processor/groupbyattrsprocessor/internal/metadata/generated_telemetry.go index 507919b2ac66d..630ffca814bd9 100644 --- a/processor/groupbyattrsprocessor/internal/metadata/generated_telemetry.go +++ b/processor/groupbyattrsprocessor/internal/metadata/generated_telemetry.go @@ -68,55 +68,55 @@ func NewTelemetryBuilder(settings component.TelemetrySettings, options ...Teleme var err, errs error builder.ProcessorGroupbyattrsLogGroups, err = builder.meter.Int64Histogram( "otelcol_processor_groupbyattrs_log_groups", - metric.WithDescription("Distribution of groups extracted for logs"), + metric.WithDescription("Distribution of groups extracted for logs [development]"), metric.WithUnit("1"), ) errs = errors.Join(errs, err) builder.ProcessorGroupbyattrsMetricGroups, err = builder.meter.Int64Histogram( "otelcol_processor_groupbyattrs_metric_groups", - metric.WithDescription("Distribution of groups extracted for metrics"), + metric.WithDescription("Distribution of groups extracted for metrics [development]"), metric.WithUnit("1"), ) errs = errors.Join(errs, err) builder.ProcessorGroupbyattrsNumGroupedLogs, err = builder.meter.Int64Counter( "otelcol_processor_groupbyattrs_num_grouped_logs", - metric.WithDescription("Number of logs that had attributes grouped"), + metric.WithDescription("Number of logs that had attributes grouped [development]"), metric.WithUnit("1"), ) errs = errors.Join(errs, err) builder.ProcessorGroupbyattrsNumGroupedMetrics, err = builder.meter.Int64Counter( "otelcol_processor_groupbyattrs_num_grouped_metrics", - metric.WithDescription("Number of metrics that had attributes grouped"), + metric.WithDescription("Number of metrics that had attributes grouped [development]"), metric.WithUnit("1"), ) errs = errors.Join(errs, err) builder.ProcessorGroupbyattrsNumGroupedSpans, err = builder.meter.Int64Counter( "otelcol_processor_groupbyattrs_num_grouped_spans", - metric.WithDescription("Number of spans that had attributes grouped"), + metric.WithDescription("Number of spans that had attributes grouped [development]"), metric.WithUnit("1"), ) errs = errors.Join(errs, err) builder.ProcessorGroupbyattrsNumNonGroupedLogs, err = builder.meter.Int64Counter( "otelcol_processor_groupbyattrs_num_non_grouped_logs", - metric.WithDescription("Number of logs that did not have attributes grouped"), + metric.WithDescription("Number of logs that did not have attributes grouped [development]"), metric.WithUnit("1"), ) errs = errors.Join(errs, err) builder.ProcessorGroupbyattrsNumNonGroupedMetrics, err = builder.meter.Int64Counter( "otelcol_processor_groupbyattrs_num_non_grouped_metrics", - metric.WithDescription("Number of metrics that did not have attributes grouped"), + metric.WithDescription("Number of metrics that did not have attributes grouped [development]"), metric.WithUnit("1"), ) errs = errors.Join(errs, err) builder.ProcessorGroupbyattrsNumNonGroupedSpans, err = builder.meter.Int64Counter( "otelcol_processor_groupbyattrs_num_non_grouped_spans", - metric.WithDescription("Number of spans that did not have attributes grouped"), + metric.WithDescription("Number of spans that did not have attributes grouped [development]"), metric.WithUnit("1"), ) errs = errors.Join(errs, err) builder.ProcessorGroupbyattrsSpanGroups, err = builder.meter.Int64Histogram( "otelcol_processor_groupbyattrs_span_groups", - metric.WithDescription("Distribution of groups extracted for spans"), + metric.WithDescription("Distribution of groups extracted for spans [development]"), metric.WithUnit("1"), ) errs = errors.Join(errs, err) diff --git a/processor/groupbyattrsprocessor/internal/metadatatest/generated_telemetrytest.go b/processor/groupbyattrsprocessor/internal/metadatatest/generated_telemetrytest.go index d9edc765ae80a..34c1174b4ab5e 100644 --- a/processor/groupbyattrsprocessor/internal/metadatatest/generated_telemetrytest.go +++ b/processor/groupbyattrsprocessor/internal/metadatatest/generated_telemetrytest.go @@ -24,7 +24,7 @@ func NewSettings(tt *componenttest.Telemetry) processor.Settings { func AssertEqualProcessorGroupbyattrsLogGroups(t *testing.T, tt *componenttest.Telemetry, dps []metricdata.HistogramDataPoint[int64], opts ...metricdatatest.Option) { want := metricdata.Metrics{ Name: "otelcol_processor_groupbyattrs_log_groups", - Description: "Distribution of groups extracted for logs", + Description: "Distribution of groups extracted for logs [development]", Unit: "1", Data: metricdata.Histogram[int64]{ Temporality: metricdata.CumulativeTemporality, @@ -39,7 +39,7 @@ func AssertEqualProcessorGroupbyattrsLogGroups(t *testing.T, tt *componenttest.T func AssertEqualProcessorGroupbyattrsMetricGroups(t *testing.T, tt *componenttest.Telemetry, dps []metricdata.HistogramDataPoint[int64], opts ...metricdatatest.Option) { want := metricdata.Metrics{ Name: "otelcol_processor_groupbyattrs_metric_groups", - Description: "Distribution of groups extracted for metrics", + Description: "Distribution of groups extracted for metrics [development]", Unit: "1", Data: metricdata.Histogram[int64]{ Temporality: metricdata.CumulativeTemporality, @@ -54,7 +54,7 @@ func AssertEqualProcessorGroupbyattrsMetricGroups(t *testing.T, tt *componenttes func AssertEqualProcessorGroupbyattrsNumGroupedLogs(t *testing.T, tt *componenttest.Telemetry, dps []metricdata.DataPoint[int64], opts ...metricdatatest.Option) { want := metricdata.Metrics{ Name: "otelcol_processor_groupbyattrs_num_grouped_logs", - Description: "Number of logs that had attributes grouped", + Description: "Number of logs that had attributes grouped [development]", Unit: "1", Data: metricdata.Sum[int64]{ Temporality: metricdata.CumulativeTemporality, @@ -70,7 +70,7 @@ func AssertEqualProcessorGroupbyattrsNumGroupedLogs(t *testing.T, tt *componentt func AssertEqualProcessorGroupbyattrsNumGroupedMetrics(t *testing.T, tt *componenttest.Telemetry, dps []metricdata.DataPoint[int64], opts ...metricdatatest.Option) { want := metricdata.Metrics{ Name: "otelcol_processor_groupbyattrs_num_grouped_metrics", - Description: "Number of metrics that had attributes grouped", + Description: "Number of metrics that had attributes grouped [development]", Unit: "1", Data: metricdata.Sum[int64]{ Temporality: metricdata.CumulativeTemporality, @@ -86,7 +86,7 @@ func AssertEqualProcessorGroupbyattrsNumGroupedMetrics(t *testing.T, tt *compone func AssertEqualProcessorGroupbyattrsNumGroupedSpans(t *testing.T, tt *componenttest.Telemetry, dps []metricdata.DataPoint[int64], opts ...metricdatatest.Option) { want := metricdata.Metrics{ Name: "otelcol_processor_groupbyattrs_num_grouped_spans", - Description: "Number of spans that had attributes grouped", + Description: "Number of spans that had attributes grouped [development]", Unit: "1", Data: metricdata.Sum[int64]{ Temporality: metricdata.CumulativeTemporality, @@ -102,7 +102,7 @@ func AssertEqualProcessorGroupbyattrsNumGroupedSpans(t *testing.T, tt *component func AssertEqualProcessorGroupbyattrsNumNonGroupedLogs(t *testing.T, tt *componenttest.Telemetry, dps []metricdata.DataPoint[int64], opts ...metricdatatest.Option) { want := metricdata.Metrics{ Name: "otelcol_processor_groupbyattrs_num_non_grouped_logs", - Description: "Number of logs that did not have attributes grouped", + Description: "Number of logs that did not have attributes grouped [development]", Unit: "1", Data: metricdata.Sum[int64]{ Temporality: metricdata.CumulativeTemporality, @@ -118,7 +118,7 @@ func AssertEqualProcessorGroupbyattrsNumNonGroupedLogs(t *testing.T, tt *compone func AssertEqualProcessorGroupbyattrsNumNonGroupedMetrics(t *testing.T, tt *componenttest.Telemetry, dps []metricdata.DataPoint[int64], opts ...metricdatatest.Option) { want := metricdata.Metrics{ Name: "otelcol_processor_groupbyattrs_num_non_grouped_metrics", - Description: "Number of metrics that did not have attributes grouped", + Description: "Number of metrics that did not have attributes grouped [development]", Unit: "1", Data: metricdata.Sum[int64]{ Temporality: metricdata.CumulativeTemporality, @@ -134,7 +134,7 @@ func AssertEqualProcessorGroupbyattrsNumNonGroupedMetrics(t *testing.T, tt *comp func AssertEqualProcessorGroupbyattrsNumNonGroupedSpans(t *testing.T, tt *componenttest.Telemetry, dps []metricdata.DataPoint[int64], opts ...metricdatatest.Option) { want := metricdata.Metrics{ Name: "otelcol_processor_groupbyattrs_num_non_grouped_spans", - Description: "Number of spans that did not have attributes grouped", + Description: "Number of spans that did not have attributes grouped [development]", Unit: "1", Data: metricdata.Sum[int64]{ Temporality: metricdata.CumulativeTemporality, @@ -150,7 +150,7 @@ func AssertEqualProcessorGroupbyattrsNumNonGroupedSpans(t *testing.T, tt *compon func AssertEqualProcessorGroupbyattrsSpanGroups(t *testing.T, tt *componenttest.Telemetry, dps []metricdata.HistogramDataPoint[int64], opts ...metricdatatest.Option) { want := metricdata.Metrics{ Name: "otelcol_processor_groupbyattrs_span_groups", - Description: "Distribution of groups extracted for spans", + Description: "Distribution of groups extracted for spans [development]", Unit: "1", Data: metricdata.Histogram[int64]{ Temporality: metricdata.CumulativeTemporality, diff --git a/processor/groupbyattrsprocessor/metadata.yaml b/processor/groupbyattrsprocessor/metadata.yaml index 1cfd4013bb6bb..7f14966c7c5cb 100644 --- a/processor/groupbyattrsprocessor/metadata.yaml +++ b/processor/groupbyattrsprocessor/metadata.yaml @@ -16,6 +16,8 @@ telemetry: processor_groupbyattrs_num_grouped_spans: enabled: true description: Number of spans that had attributes grouped + stability: + level: development unit: "1" sum: value_type: int @@ -23,6 +25,8 @@ telemetry: processor_groupbyattrs_num_non_grouped_spans: enabled: true description: Number of spans that did not have attributes grouped + stability: + level: development unit: "1" sum: value_type: int @@ -30,12 +34,16 @@ telemetry: processor_groupbyattrs_span_groups: enabled: true description: Distribution of groups extracted for spans + stability: + level: development unit: "1" histogram: value_type: int processor_groupbyattrs_num_grouped_logs: enabled: true description: Number of logs that had attributes grouped + stability: + level: development unit: "1" sum: value_type: int @@ -43,6 +51,8 @@ telemetry: processor_groupbyattrs_num_non_grouped_logs: enabled: true description: Number of logs that did not have attributes grouped + stability: + level: development unit: "1" sum: value_type: int @@ -50,12 +60,16 @@ telemetry: processor_groupbyattrs_log_groups: enabled: true description: Distribution of groups extracted for logs + stability: + level: development unit: "1" histogram: value_type: int processor_groupbyattrs_num_grouped_metrics: enabled: true description: Number of metrics that had attributes grouped + stability: + level: development unit: "1" sum: value_type: int @@ -63,6 +77,8 @@ telemetry: processor_groupbyattrs_num_non_grouped_metrics: enabled: true description: Number of metrics that did not have attributes grouped + stability: + level: development unit: "1" sum: value_type: int @@ -70,6 +86,8 @@ telemetry: processor_groupbyattrs_metric_groups: enabled: true description: Distribution of groups extracted for metrics + stability: + level: development unit: "1" histogram: value_type: int