-
Sorry that is not an issue but I cannot find the answer and don't know where to ask: can the tracer object returned by I did not found any clear documentation on this and I found conflicting examples where some declare a global variable with the tracer and reuse it and some call |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Also, documented here in this project: opentelemetry-go/trace/trace.go Line 671 in 23422c5 The |
Beta Was this translation helpful? Give feedback.
-
👋 A kind of continuation of this discussion I think: If we only plan to use one Tracer in a project, it is better, or perhaps more idiomatic say, to use I suppose I am more partial to just calling Thanks very much! |
Beta Was this translation helpful? Give feedback.
As specified:
Also, documented here in this project:
opentelemetry-go/trace/trace.go
Line 671 in 23422c5
The
otel.Tracer
function will return either an internal implementation, which is tested here for concurrency safety, or the registered SDK version. If the default SDK, provided by this project, is used it as well is concurrent safe as tested here.