Move tracer()
method from Tracer class to Instrumentation
#1622
Labels
enhancement
New feature or request
tracer()
method from Tracer class to Instrumentation
#1622
One of the asks from #566 is the ability to add new attributes to spans. These attributes may depend on the same actual objects that Tracers operate on, such as http request or db connection. Thus this cannot be done in
SpanProcessor
and vendor distros should be able to override Tracer implementation.But atm instrumentations access tracer instance via static method on tracer class:
This makes overriding impossible. I propose to make
tracer()
an instance method on either instrumentation or advice.The text was updated successfully, but these errors were encountered: