GetTracerProvider returns NoopTracerProvider #3561
-
Per the comments from
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
That is not guaranteed. If you do not explicitly call If you would explicitly like a |
Beta Was this translation helpful? Give feedback.
That is not guaranteed. If you do not explicitly call
SetTracerProvider
no global tracer provider is registered, a noop will be returned in this case.If you would explicitly like a
NoopTracerProvider
you can create one withNewNoopTracerProvider
.