diff --git a/pkg/distributor/otel.go b/pkg/distributor/otel.go index f6d32cabe19..2a8cdf32f00 100644 --- a/pkg/distributor/otel.go +++ b/pkg/distributor/otel.go @@ -181,7 +181,7 @@ func OTLPHandler( pushMetrics.ObserveUncompressedBodySize(tenantID, float64(uncompressedBodySize)) var metrics []mimirpb.PreallocTimeseries - metrics, err = otelMetricsToTimeseries(ctx, tenantID, addSuffixes, enableCTZeroIngestion, promoteResourceAttributes, discardedDueToOtelParseError, logger, otlpReq.Metrics()) + metrics, err = otelMetricsToTimeseries(ctx, tenantID, addSuffixes, enableCTZeroIngestion, promoteResourceAttributes, discardedDueToOtelParseError, spanLogger, otlpReq.Metrics()) if err != nil { return err }