Merge pull request 'fix Provider option' (#2) from optsfix into v3
Reviewed-on: #2
This commit is contained in:
commit
ba72eb9968
@ -8,8 +8,8 @@ import (
|
|||||||
|
|
||||||
type providerKey struct{}
|
type providerKey struct{}
|
||||||
|
|
||||||
func Provider(opts ...tracesdk.TracerProvider) tracer.Option {
|
func Provider(tp *tracesdk.TracerProvider) tracer.Option {
|
||||||
return tracer.SetOption(providerKey{}, opts)
|
return tracer.SetOption(providerKey{}, tp)
|
||||||
}
|
}
|
||||||
|
|
||||||
type providerOptionsKey struct{}
|
type providerOptionsKey struct{}
|
||||||
|
Loading…
Reference in New Issue
Block a user