micro-tracer-opentracing/options.go

13 lines
236 B
Go
Raw Permalink Normal View History

package opentracing
import (
"github.com/opentracing/opentracing-go"
"go.unistack.org/micro/v4/options"
)
type tracerKey struct{}
func Tracer(ot opentracing.Tracer) options.Option {
return options.ContextOption(tracerKey{}, ot)
}