Skip to content

Commit

Permalink
update otel metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
vchitai committed Nov 13, 2020
1 parent 44f984f commit 3e3a025
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions instrumentation/net/http/otelhttp/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 3e3a025

Please sign in to comment.