-
Notifications
You must be signed in to change notification settings - Fork 872
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 "code" attribute to spans every time it is possible #7907
Comments
@FBibonne could you provide samples where you believe |
This has been automatically marked as stale because it has been marked as needing author feedback and has not had any activity for 7 days. It will be closed automatically if there is no response from the author within 7 additional days from this comment. |
The first sample I think about is "jdbc span" : you see the SQL request but you don't know which line of code triggered it and if the SQL request is not specific enough, you can't guess the line of of code. I have to redo my trials to give more samples. But to my mind, if you monitor a legacy code which is not instrumented with business spans, you may have difficulty to find where a slow trace (SQL, http client, ...) come from to fix it. |
Usually |
This has been automatically marked as stale because it has been marked as needing author feedback and has not had any activity for 7 days. It will be closed automatically if there is no response from the author within 7 additional days from this comment. |
In order to better understand bugs into a single app component, I suggest it would be usefull to add "code.function", "code.namespace" and "code.lineno" attributes to spans when it is possible. The issue #7345 is limited to controller spans so I suggested to extend it to every span where possible.
Instead of rewriting every instrument, I wonder if it is possible to write an agent extension which would systematically add the code.* attributes to the span.
The text was updated successfully, but these errors were encountered: