micro-tracer-opentracing/options.go
Vasiliy Tolstov 2fb5693d97 move to micro v4
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2023-05-07 19:38:45 +03:00

13 lines
229 B
Go

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