Skip to content

Commit

Permalink
remove default
Browse files Browse the repository at this point in the history
  • Loading branch information
pirgeo committed Jul 30, 2024
1 parent 758bc40 commit 619e9a8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions config/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 619e9a8

Please sign in to comment.