diff --git a/processor/probabilisticsamplerprocessor/documentation.md b/processor/probabilisticsamplerprocessor/documentation.md index c3019805e6868..25ada65d325ca 100644 --- a/processor/probabilisticsamplerprocessor/documentation.md +++ b/processor/probabilisticsamplerprocessor/documentation.md @@ -8,16 +8,16 @@ The following telemetry is emitted by this component. ### otelcol_processor_probabilistic_sampler_count_logs_sampled -Count of logs that were sampled or not +Count of logs that were sampled or not [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_probabilistic_sampler_count_traces_sampled -Count of traces that were sampled or not +Count of traces that were sampled or not [development] -| Unit | Metric Type | Value Type | Monotonic | -| ---- | ----------- | ---------- | --------- | -| 1 | Sum | Int | true | +| Unit | Metric Type | Value Type | Monotonic | Stability | +| ---- | ----------- | ---------- | --------- | --------- | +| 1 | Sum | Int | true | development | diff --git a/processor/probabilisticsamplerprocessor/internal/metadata/generated_telemetry.go b/processor/probabilisticsamplerprocessor/internal/metadata/generated_telemetry.go index f96a604270e8b..8fd438ed1e56b 100644 --- a/processor/probabilisticsamplerprocessor/internal/metadata/generated_telemetry.go +++ b/processor/probabilisticsamplerprocessor/internal/metadata/generated_telemetry.go @@ -61,13 +61,13 @@ func NewTelemetryBuilder(settings component.TelemetrySettings, options ...Teleme var err, errs error builder.ProcessorProbabilisticSamplerCountLogsSampled, err = builder.meter.Int64Counter( "otelcol_processor_probabilistic_sampler_count_logs_sampled", - metric.WithDescription("Count of logs that were sampled or not"), + metric.WithDescription("Count of logs that were sampled or not [development]"), metric.WithUnit("1"), ) errs = errors.Join(errs, err) builder.ProcessorProbabilisticSamplerCountTracesSampled, err = builder.meter.Int64Counter( "otelcol_processor_probabilistic_sampler_count_traces_sampled", - metric.WithDescription("Count of traces that were sampled or not"), + metric.WithDescription("Count of traces that were sampled or not [development]"), metric.WithUnit("1"), ) errs = errors.Join(errs, err) diff --git a/processor/probabilisticsamplerprocessor/internal/metadatatest/generated_telemetrytest.go b/processor/probabilisticsamplerprocessor/internal/metadatatest/generated_telemetrytest.go index ae8f60c58b26c..25cee5027b555 100644 --- a/processor/probabilisticsamplerprocessor/internal/metadatatest/generated_telemetrytest.go +++ b/processor/probabilisticsamplerprocessor/internal/metadatatest/generated_telemetrytest.go @@ -24,7 +24,7 @@ func NewSettings(tt *componenttest.Telemetry) processor.Settings { func AssertEqualProcessorProbabilisticSamplerCountLogsSampled(t *testing.T, tt *componenttest.Telemetry, dps []metricdata.DataPoint[int64], opts ...metricdatatest.Option) { want := metricdata.Metrics{ Name: "otelcol_processor_probabilistic_sampler_count_logs_sampled", - Description: "Count of logs that were sampled or not", + Description: "Count of logs that were sampled or not [development]", Unit: "1", Data: metricdata.Sum[int64]{ Temporality: metricdata.CumulativeTemporality, @@ -40,7 +40,7 @@ func AssertEqualProcessorProbabilisticSamplerCountLogsSampled(t *testing.T, tt * func AssertEqualProcessorProbabilisticSamplerCountTracesSampled(t *testing.T, tt *componenttest.Telemetry, dps []metricdata.DataPoint[int64], opts ...metricdatatest.Option) { want := metricdata.Metrics{ Name: "otelcol_processor_probabilistic_sampler_count_traces_sampled", - Description: "Count of traces that were sampled or not", + Description: "Count of traces that were sampled or not [development]", Unit: "1", Data: metricdata.Sum[int64]{ Temporality: metricdata.CumulativeTemporality, diff --git a/processor/probabilisticsamplerprocessor/metadata.yaml b/processor/probabilisticsamplerprocessor/metadata.yaml index 22e489aa15359..6efadc54caf32 100644 --- a/processor/probabilisticsamplerprocessor/metadata.yaml +++ b/processor/probabilisticsamplerprocessor/metadata.yaml @@ -19,6 +19,8 @@ telemetry: processor_probabilistic_sampler_count_traces_sampled: enabled: true description: Count of traces that were sampled or not + stability: + level: development unit: "1" sum: value_type: int @@ -26,6 +28,8 @@ telemetry: processor_probabilistic_sampler_count_logs_sampled: enabled: true description: Count of logs that were sampled or not + stability: + level: development unit: "1" sum: value_type: int