-
Notifications
You must be signed in to change notification settings - Fork 873
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
Log current thread id and name as span attribute #942
Comments
Should we start by filing an issue in the https://github.com/open-telemetry/opentelemetry-specification repo to add semantic conventions for these? We could have an extension of some sort for these but I don't think we should add anything by default that isn't in the spec. It's interesting that these feel like |
👍 |
We have a lot of attributes not mentioned in spec. Just saying :) |
I don't think we have any generic attributes (not library specific ones) that aren't in the spec? |
A, that's true. @mateuszrzeszutek, please follow the suggestion of @anuraaga from above |
Labeled |
Currently we do not include any thread info (id, name) in spans produced by the agent. This issue is a suggestion to add two new attributes to each span just before it's started:
thread.id
- equal toThread.currentThread().getId()
thread.name
- equal toThread.currentThread().getName()
Those two attributes could be set in the
BaseTracer#startSpan()
method (or in a method used by/closely related to that one) so that they're uniformly added to all spans produced by the Java agent.The text was updated successfully, but these errors were encountered: