2023-01-17 08:43:04 +03:00
|
|
|
package opentracing
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/opentracing/opentracing-go"
|
2023-08-02 09:41:32 +03:00
|
|
|
"go.unistack.org/micro/v4/options"
|
2023-01-17 08:43:04 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
type tracerKey struct{}
|
|
|
|
|
2023-08-02 09:41:32 +03:00
|
|
|
func Tracer(ot opentracing.Tracer) options.Option {
|
|
|
|
return options.ContextOption(tracerKey{}, ot)
|
2023-01-17 08:43:04 +03:00
|
|
|
}
|