From 619e9a8107131259ce8d0d8f9c0774457124d227 Mon Sep 17 00:00:00 2001 From: Georg P Date: Tue, 30 Jul 2024 10:38:38 +0200 Subject: [PATCH] remove default --- config/metric.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/config/metric.go b/config/metric.go index 193c285781f..7778458253b 100644 --- a/config/metric.go +++ b/config/metric.go @@ -280,15 +280,10 @@ func otlpGRPCMetricExporter(ctx context.Context, otlpConfig *OTLPMetric) (sdkmet switch *otlpConfig.TemporalityPreference { case "cumulative": opts = append(opts, otlpmetricgrpc.WithTemporalitySelector(temporalityPreferenceCumulative)) - case "delta": opts = append(opts, otlpmetricgrpc.WithTemporalitySelector(temporalityPreferenceDeltaPreferred)) - case "lowmemory": opts = append(opts, otlpmetricgrpc.WithTemporalitySelector(temporalityPreferenceLowMemory)) - - default: - opts = append(opts, otlpmetricgrpc.WithTemporalitySelector(sdkmetric.DefaultTemporalitySelector)) } } if otlpConfig.DefaultHistogramAggregation != nil {