-
Notifications
You must be signed in to change notification settings - Fork 889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exposing tracer property on spans #21
Comments
I also think it would be nice since configs are usually exposed via the tracer. Besides, I assume |
@tylerbenson in the original issue - the scenario was given to start a child span, not to distinguish configurations. How will you use tracer obtained from Span besides starting child spans? |
We use this with OpenTracing to access the scope manager and to start related spans. The ability to access the tracer configuration would also be a nice addition since right now with OpenTracing the only compliant way to do that would be to assign the configuration to every span context to expose it. In general, I find that exposing the tracer would result in a cleaner API that replicating some of the available tracer methods on the span class. |
I remember that we wanted to do this in OT Java (although we did this for OT Python, for example), and I'm definitely in agreement with this change. Wondering if there's a way to poke people for a counter example (if there's any at all ;) ) |
This becoming even more important and valuable with the named tracers |
@SergeyKanzhelev I agree. Given the design of |
In my opinion, with named tracers, there now actually is the slight downside to providing another way to access the tracer. E.g. some instrumentation libraries might use |
@Oberon00 it is a good point that some libraries may want to "hide" their Tracer. For instance, user may disable certain component telemetry and span will carry no-op Tracer. Which will not be clear to the caller. Giving it's easy to obtain a tracer and tracer doesn't carry any instance-specific information I tend to close this issue. We should reconsider when Tracer will have more methods than it has today. |
+1 for closing this issue without action. In OpenTracing we had |
* Start filling out span backport * Fix assertion * Add a span test. * Fix constructors * Fill out span tests * Add test coverage for pointer-count construction * s/ASSERT_DEATH/EXPECT_DEATH/ * Add bracket operator test * Add test coverage for other span construction. * Add test coverage for array construction * Add test for range construction * Fix typo. * Add assignment test * Add iteration test * Add data/size functions * Add array overloads * Support implicit construction from general containers * Reformat * Fix typo * Fix typo * Fix enable_if condition
Fix Java system property description
From open-telemetry/opentelemetry-js#5
@hekike, @rochdev
The text was updated successfully, but these errors were encountered: