You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Span has a private tracer property, NoRecordSpan doesn't. I'd prefer to make tracer always available on Span like in OpenTracing. Coming from OpenTracing, I found it challenging not having tracer available on spans, especially that first I assumed it is and started to use it, then my code broke one NoRecordSpan(s).
The text was updated successfully, but these errors were encountered:
What do you need a tracer for? Is it because multiple apps can be hosted in a single process and you need app-specific tracer? Or because of this: census-instrumentation/opencensus-specs#249 - ability to restore the scope without holding on to scope object?
None of them. We prefer manual instrumentation without CLS overhead and it’s easier to start a child span if we don’t need to pass both tracer and root span around. Alternative could be:
span.startChildSpan().startChildSpan()...
Span
has a privatetracer
property,NoRecordSpan
doesn't. I'd prefer to make tracer always available on Span like in OpenTracing. Coming from OpenTracing, I found it challenging not havingtracer
available on spans, especially that first I assumed it is and started to use it, then my code broke oneNoRecordSpan
(s).The text was updated successfully, but these errors were encountered: