-
Notifications
You must be signed in to change notification settings - Fork 306
ADR for telemetry improvements #213
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
Conversation
A template (copied from internet) and a draft ADR for telemetry.
It would be worth referencing this: https://opentelemetry.lightstep.com/best-practices/using-attributes/ |
I was commenting that the decorator is kinda nice and we should add it to the recommendations: #210 (comment) Also there is the question about where the trace should go in the code:
I personally prefer on the source function. I think this should also go into the recommendations of everybody agrees. |
I'm adding some random notes that came up while working on #224 and others, maybe some of them will be useful to define how we should use tracing:
|
I've incorporated the review comments that I think belong in the ADR. Some of the comments not included maybe should be here as well...
|
- Ensure that each instrumented function is named to promote understanding | ||
and consistency | ||
|
||
- Ensure that instrumentation is at the "info" level. Other levels, such |
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.
using instrument at debug or trace level should be fine, it's actually a good use of that attribute, because when debugging we may want to know which function is called. While info level spans are collected in production telemetry, where that level of detail is less interesting, and we actually want logic spans (like "query planning phase")
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 that's really the point I'm trying to make here, but perhaps not very clearly. I'm trying to indicate that most instrumentation should be considered as "production first" (i.e. info level). I want developers to think about the level and have a bias for thinking about how to report production useful telemetry.
A template (copied from internet) and a draft ADR for telemetry.
Please use the github "discussion" (shared in slack) for framing discussion about these documents.