-
Notifications
You must be signed in to change notification settings - Fork 888
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
Add tracer construction spec #135
Add tracer construction spec #135
Conversation
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
I have a couple concerns here.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think tracer should be part of tracing-api.md
?
Hey @pavolloffay thanks for cooking this PR. As Yuri said, I think stating "MUST" for using Also, automatic registration (i.e. what |
I think we should look at it from the other side. We should assure that the registry always returns a valid tracer so the instrumentations can bind to it. |
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for @yurishkuro's concerns.
In particular, an assumption that OpenTelemetry.getTracer()
returns a valid (i.e., non-null) tracer is quite different from assuming that it is the desired tracer. There are many reasons why users may want to avoid relying on a global tracer.
@iredelmeier for libraries instrumentation there must be a way to obtain the As for non-null - an implementation of this registry may be very language specific. But I'd say the requirement for it to be non null is quite important to avoid undesired |
One in which every library requires providing a tracer? No. One in which libraries are at least advised to enable overriding the global? Yes.
My thoughts exactly! e.g., in OpenTracing there's the concept of a |
@iredelmeier I suggest we file a feedback item to expand this description for the languages that uses DI extensively and have a practice of constructing SDKs and providing OT object explicitly. In any case there must be some global object to get as minimum the default (noop) tracer. So I suggest we merge this one and formulate it better later. I'd need this update personally for C#, but not ready to generalize it properly as a spec |
Created: #143 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Add tracer construction spec Signed-off-by: Pavol Loffay <ploffay@redhat.com> * Move to tracing-api and fix comments Signed-off-by: Pavol Loffay <ploffay@redhat.com> * Small fixes Signed-off-by: Pavol Loffay <ploffay@redhat.com> * Fix dot Signed-off-by: Pavol Loffay <ploffay@redhat.com>
* serverless configuration * Update specification/configuration.md Co-authored-by: Steve Flanders <sflanders@splunk.com> * spec review open-telemetry#1 * Update specification/configuration.md Co-authored-by: Robert Pająk <rpajak@splunk.com> * Update specification/configuration.md Co-authored-by: Robert Pająk <rpajak@splunk.com> * Update specification/configuration.md Co-authored-by: Robert Pająk <rpajak@splunk.com> * spec review * spec review * review meeting outcome * post-discussion changes * Update specification/configuration.md Co-authored-by: Steve Flanders <sflanders@splunk.com> Co-authored-by: Steve Flanders <sflanders@splunk.com> Co-authored-by: Robert Pająk <rpajak@splunk.com>
* Add tracer construction spec Signed-off-by: Pavol Loffay <ploffay@redhat.com> * Move to tracing-api and fix comments Signed-off-by: Pavol Loffay <ploffay@redhat.com> * Small fixes Signed-off-by: Pavol Loffay <ploffay@redhat.com> * Fix dot Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Resolves #39
Signed-off-by: Pavol Loffay ploffay@redhat.com