You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-07-15 01:04:25 +02:00
Misc fixes from PR 381 (#443)
* Remove Vendor constants from tracing plugins Unused. And confusing, since "ot" may mean "opentracing" as well. * Simplify current span key declaration No need for a block. * Fix typo Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user