diff --git a/instrumentation/net/http/otelhttp/metrics.go b/instrumentation/net/http/otelhttp/metrics.go index 4ca34b5592b..b0ea33c85b9 100644 --- a/instrumentation/net/http/otelhttp/metrics.go +++ b/instrumentation/net/http/otelhttp/metrics.go @@ -16,12 +16,13 @@ package otelhttp import ( "context" - "go.opentelemetry.io/otel/semconv" "io" "net/http" "sync" "time" + "go.opentelemetry.io/otel/semconv" + "go.opentelemetry.io/otel/unit" "go.opentelemetry.io/otel/api/metric" @@ -35,11 +36,11 @@ type metricsTransport struct { } type tracker struct { - ctx context.Context - start time.Time - body io.ReadCloser - endOnce sync.Once - labels []label.KeyValue + ctx context.Context + start time.Time + body io.ReadCloser + endOnce sync.Once + labels []label.KeyValue // recorders clientDurationRecorder metric.Float64ValueRecorder