Constant THREAD_NAME
pub const THREAD_NAME: &'static str;Available on crate features
opentelemetry and semconv_experimental only.Expand description
Current thread name.
§Notes
Examples of where the value can be extracted from:
| Language or platform | Source |
|---|---|
| JVM | Thread.currentThread().getName() |
| .NET | Thread.CurrentThread.Name |
| Python | threading.current_thread().name |
| Ruby | Thread.current.name |
| Erlang | erlang:process_info(self(), registered_name) |
§Examples
"main"