Add semantic conventions for thread.name and thread.id span attributes #788
Labels
area:semantic-conventions
Related to semantic conventions
release:after-ga
Not required before GA release, and not going to work on before GA
spec:trace
Related to the specification/trace directory
What are you trying to achieve?
Currently there's no semantic convention for adding executing thread info as span attributes. My proposition is to add two new general span attributes that may store the executing thread's id and name:
thread.id
42
thread.name
main
Additional context.
This change is mostly motivated by the Java world, but I believe that it's a language agnostic concept that may also be present in other languages, e.g.:
threading.current_thread().ident
andthreading.current_thread().name
Thread.current.name
Thread.CurrentThread.ManagedThreadId
andThread.CurrentThread.Name
Also, see related issue: open-telemetry/opentelemetry-java-instrumentation#942
The text was updated successfully, but these errors were encountered: