View Source OpenTelemetry.SemConv.Incubating.ThreadAttributes (OpenTelemetry.SemConv v1.27.0)

OpenTelemetry Semantic Conventions for Thread attributes.

Summary

Functions

Current "managed" thread ID (as opposed to OS thread ID).

Current thread name.

Functions

@spec thread_id() :: :"thread.id"

Current "managed" thread ID (as opposed to OS thread ID).

Value type

Value must be of type integer().

Examples

42

Elixir

iex> OpenTelemetry.SemConv.Incubating.ThreadAttributes.thread_id()
:"thread.id"

Erlang

?THREAD_ID.
'thread.id'
@spec thread_name() :: :"thread.name"

Current thread name.

Value type

Value must be of type atom() | String.t().

Examples

main

Elixir

iex> OpenTelemetry.SemConv.Incubating.ThreadAttributes.thread_name()
:"thread.name"

Erlang

?THREAD_NAME.
'thread.name'