fix Provider option #2

Merged
vtolstov merged 1 commits from optsfix into v3 2023-08-16 08:13:04 +03:00
Showing only changes of commit 39aa3ccb5a - Show all commits

View File

@ -8,8 +8,8 @@ import (
type providerKey struct{}
func Provider(opts ...tracesdk.TracerProvider) tracer.Option {
return tracer.SetOption(providerKey{}, opts)
func Provider(tp *tracesdk.TracerProvider) tracer.Option {
return tracer.SetOption(providerKey{}, tp)
}
type providerOptionsKey struct{}