Compare commits

..

2 Commits
v3.0.1 ... v3

Author SHA1 Message Date
ba72eb9968 Merge pull request 'fix Provider option' (#2) from optsfix into v3
Reviewed-on: #2
2023-08-16 08:13:03 +03:00
39aa3ccb5a fix Provider option
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2023-08-16 08:12:36 +03:00

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{}