Vasiliy Tolstov cdf097d959 updates
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-03-11 14:03:53 +03:00

20 lines
406 B
Go

package instana
import (
instana "github.com/instana/go-sensor"
sensor "github.com/instana/go-sensor"
"go.unistack.org/micro/v3/tracer"
)
type tracerOptionsKey struct{}
func Options(opts *sensor.Options) tracer.Option {
return tracer.SetOption(tracerOptionsKey{}, opts)
}
type recorderKey struct{}
func Recorder(r instana.SpanRecorder) tracer.Option {
return tracer.SetOption(recorderKey{}, r)
}