From 62a09fa9c85b0db7c117485c4bab4578e6789c55 Mon Sep 17 00:00:00 2001 From: ChrsMark Date: Thu, 25 Sep 2025 22:45:25 +0300 Subject: [PATCH] [chore][sumologicexporter] Add stability level per metric Signed-off-by: ChrsMark --- exporter/sumologicexporter/documentation.md | 32 +++++++++---------- .../internal/metadata/generated_telemetry.go | 8 ++--- .../metadatatest/generated_telemetrytest.go | 8 ++--- exporter/sumologicexporter/metadata.yaml | 8 +++++ 4 files changed, 32 insertions(+), 24 deletions(-) diff --git a/exporter/sumologicexporter/documentation.md b/exporter/sumologicexporter/documentation.md index 895776e944fee..3726be8488bf7 100644 --- a/exporter/sumologicexporter/documentation.md +++ b/exporter/sumologicexporter/documentation.md @@ -8,32 +8,32 @@ The following telemetry is emitted by this component. ### otelcol_exporter_requests_bytes -Total size of requests (in bytes) +Total size of requests (in bytes) [development] -| Unit | Metric Type | Value Type | Monotonic | -| ---- | ----------- | ---------- | --------- | -| By | Sum | Int | true | +| Unit | Metric Type | Value Type | Monotonic | Stability | +| ---- | ----------- | ---------- | --------- | --------- | +| By | Sum | Int | true | development | ### otelcol_exporter_requests_duration -Duration of HTTP requests (in milliseconds) +Duration of HTTP requests (in milliseconds) [development] -| Unit | Metric Type | Value Type | Monotonic | -| ---- | ----------- | ---------- | --------- | -| ms | Sum | Int | true | +| Unit | Metric Type | Value Type | Monotonic | Stability | +| ---- | ----------- | ---------- | --------- | --------- | +| ms | Sum | Int | true | development | ### otelcol_exporter_requests_records -Total size of requests (in number of records) +Total size of requests (in number of records) [development] -| Unit | Metric Type | Value Type | Monotonic | -| ---- | ----------- | ---------- | --------- | -| {records} | Sum | Int | true | +| Unit | Metric Type | Value Type | Monotonic | Stability | +| ---- | ----------- | ---------- | --------- | --------- | +| {records} | Sum | Int | true | development | ### otelcol_exporter_requests_sent -Number of requests +Number of requests [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/exporter/sumologicexporter/internal/metadata/generated_telemetry.go b/exporter/sumologicexporter/internal/metadata/generated_telemetry.go index 51d216e05c577..bdbf81e580f29 100644 --- a/exporter/sumologicexporter/internal/metadata/generated_telemetry.go +++ b/exporter/sumologicexporter/internal/metadata/generated_telemetry.go @@ -63,25 +63,25 @@ func NewTelemetryBuilder(settings component.TelemetrySettings, options ...Teleme var err, errs error builder.ExporterRequestsBytes, err = builder.meter.Int64Counter( "otelcol_exporter_requests_bytes", - metric.WithDescription("Total size of requests (in bytes)"), + metric.WithDescription("Total size of requests (in bytes) [development]"), metric.WithUnit("By"), ) errs = errors.Join(errs, err) builder.ExporterRequestsDuration, err = builder.meter.Int64Counter( "otelcol_exporter_requests_duration", - metric.WithDescription("Duration of HTTP requests (in milliseconds)"), + metric.WithDescription("Duration of HTTP requests (in milliseconds) [development]"), metric.WithUnit("ms"), ) errs = errors.Join(errs, err) builder.ExporterRequestsRecords, err = builder.meter.Int64Counter( "otelcol_exporter_requests_records", - metric.WithDescription("Total size of requests (in number of records)"), + metric.WithDescription("Total size of requests (in number of records) [development]"), metric.WithUnit("{records}"), ) errs = errors.Join(errs, err) builder.ExporterRequestsSent, err = builder.meter.Int64Counter( "otelcol_exporter_requests_sent", - metric.WithDescription("Number of requests"), + metric.WithDescription("Number of requests [development]"), metric.WithUnit("1"), ) errs = errors.Join(errs, err) diff --git a/exporter/sumologicexporter/internal/metadatatest/generated_telemetrytest.go b/exporter/sumologicexporter/internal/metadatatest/generated_telemetrytest.go index 307216eab477b..c260108e77352 100644 --- a/exporter/sumologicexporter/internal/metadatatest/generated_telemetrytest.go +++ b/exporter/sumologicexporter/internal/metadatatest/generated_telemetrytest.go @@ -24,7 +24,7 @@ func NewSettings(tt *componenttest.Telemetry) exporter.Settings { func AssertEqualExporterRequestsBytes(t *testing.T, tt *componenttest.Telemetry, dps []metricdata.DataPoint[int64], opts ...metricdatatest.Option) { want := metricdata.Metrics{ Name: "otelcol_exporter_requests_bytes", - Description: "Total size of requests (in bytes)", + Description: "Total size of requests (in bytes) [development]", Unit: "By", Data: metricdata.Sum[int64]{ Temporality: metricdata.CumulativeTemporality, @@ -40,7 +40,7 @@ func AssertEqualExporterRequestsBytes(t *testing.T, tt *componenttest.Telemetry, func AssertEqualExporterRequestsDuration(t *testing.T, tt *componenttest.Telemetry, dps []metricdata.DataPoint[int64], opts ...metricdatatest.Option) { want := metricdata.Metrics{ Name: "otelcol_exporter_requests_duration", - Description: "Duration of HTTP requests (in milliseconds)", + Description: "Duration of HTTP requests (in milliseconds) [development]", Unit: "ms", Data: metricdata.Sum[int64]{ Temporality: metricdata.CumulativeTemporality, @@ -56,7 +56,7 @@ func AssertEqualExporterRequestsDuration(t *testing.T, tt *componenttest.Telemet func AssertEqualExporterRequestsRecords(t *testing.T, tt *componenttest.Telemetry, dps []metricdata.DataPoint[int64], opts ...metricdatatest.Option) { want := metricdata.Metrics{ Name: "otelcol_exporter_requests_records", - Description: "Total size of requests (in number of records)", + Description: "Total size of requests (in number of records) [development]", Unit: "{records}", Data: metricdata.Sum[int64]{ Temporality: metricdata.CumulativeTemporality, @@ -72,7 +72,7 @@ func AssertEqualExporterRequestsRecords(t *testing.T, tt *componenttest.Telemetr func AssertEqualExporterRequestsSent(t *testing.T, tt *componenttest.Telemetry, dps []metricdata.DataPoint[int64], opts ...metricdatatest.Option) { want := metricdata.Metrics{ Name: "otelcol_exporter_requests_sent", - Description: "Number of requests", + Description: "Number of requests [development]", Unit: "1", Data: metricdata.Sum[int64]{ Temporality: metricdata.CumulativeTemporality, diff --git a/exporter/sumologicexporter/metadata.yaml b/exporter/sumologicexporter/metadata.yaml index d6099480ecd21..e12aea8241cba 100644 --- a/exporter/sumologicexporter/metadata.yaml +++ b/exporter/sumologicexporter/metadata.yaml @@ -17,6 +17,8 @@ telemetry: metrics: exporter_requests_sent: enabled: true + stability: + level: development description: Number of requests unit: "1" sum: @@ -24,6 +26,8 @@ telemetry: monotonic: true exporter_requests_duration: enabled: true + stability: + level: development description: Duration of HTTP requests (in milliseconds) unit: ms sum: @@ -31,6 +35,8 @@ telemetry: monotonic: true exporter_requests_bytes: enabled: true + stability: + level: development description: Total size of requests (in bytes) unit: By sum: @@ -38,6 +44,8 @@ telemetry: monotonic: true exporter_requests_records: enabled: true + stability: + level: development description: Total size of requests (in number of records) unit: "{records}" sum: