Skip to content

Commit 89e4578

Browse files
fix(sigil-cc): use cumulative temporality for OTLP metrics
Delta temporality histograms are rejected by Grafana Cloud's OTLP gateway, so gen_ai.client.* metrics never reached Prometheus.
1 parent d1b27e7 commit 89e4578

File tree

1 file changed

+0
-4
lines changed
  • plugins/claude-code/internal/otel

1 file changed

+0
-4
lines changed

plugins/claude-code/internal/otel/otel.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp"
1212
"go.opentelemetry.io/otel/metric"
1313
sdkmetric "go.opentelemetry.io/otel/sdk/metric"
14-
"go.opentelemetry.io/otel/sdk/metric/metricdata"
1514
"go.opentelemetry.io/otel/sdk/resource"
1615
sdktrace "go.opentelemetry.io/otel/sdk/trace"
1716
"go.opentelemetry.io/otel/trace"
@@ -150,9 +149,6 @@ func Setup(ctx context.Context, cfg Config) (*Providers, error) {
150149
metricOpts := []otlpmetrichttp.Option{
151150
otlpmetrichttp.WithEndpoint(host),
152151
otlpmetrichttp.WithHeaders(headers),
153-
otlpmetrichttp.WithTemporalitySelector(func(_ sdkmetric.InstrumentKind) metricdata.Temporality {
154-
return metricdata.DeltaTemporality
155-
}),
156152
}
157153
if metricPath != "" {
158154
metricOpts = append(metricOpts, otlpmetrichttp.WithURLPath(metricPath))

0 commit comments

Comments
 (0)