diff --git a/api/trace/current.go b/api/trace/current.go index c1ad829dcde..55cd2d56528 100644 --- a/api/trace/current.go +++ b/api/trace/current.go @@ -20,9 +20,7 @@ import ( type currentSpanKeyType struct{} -var ( - currentSpanKey = ¤tSpanKeyType{} -) +var currentSpanKey = ¤tSpanKeyType{} func ContextWithSpan(ctx context.Context, span Span) context.Context { return context.WithValue(ctx, currentSpanKey, span) diff --git a/plugin/grpctrace/grpctrace.go b/plugin/grpctrace/grpctrace.go index 74d947bcd75..05e6f05e646 100644 --- a/plugin/grpctrace/grpctrace.go +++ b/plugin/grpctrace/grpctrace.go @@ -24,11 +24,6 @@ import ( "go.opentelemetry.io/otel/api/trace" ) -const ( - // Vendor is the integration provider - Vendor = "ot" -) - var ( propagator = trace.TraceContext{} ) diff --git a/plugin/httptrace/httptrace.go b/plugin/httptrace/httptrace.go index 376517f9709..0cdc8855010 100644 --- a/plugin/httptrace/httptrace.go +++ b/plugin/httptrace/httptrace.go @@ -23,10 +23,6 @@ import ( "go.opentelemetry.io/otel/api/trace" ) -const ( - Vendor = "ot" -) - var ( HostKey = key.New("http.host") URLKey = key.New("http.url") diff --git a/plugin/othttp/handler_example_test.go b/plugin/othttp/handler_example_test.go index c41300bbf51..2e4ffc0ff03 100644 --- a/plugin/othttp/handler_example_test.go +++ b/plugin/othttp/handler_example_test.go @@ -76,7 +76,7 @@ func ExampleNewHandler() { func(w http.ResponseWriter, r *http.Request) { ctx := r.Context() var name string - // Wrap another function in it's own span + // Wrap another function in its own span if err := trace.SpanFromContext(ctx).Tracer().WithSpan(ctx, "figureOutName", func(ctx context.Context) error { var err error