Skip to main content

THREAD_NAME

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 platformSource
JVMThread.currentThread().getName()
.NETThread.CurrentThread.Name
Pythonthreading.current_thread().name
RubyThread.current.name
Erlangerlang:process_info(self(), registered_name)

§Examples

  • "main"