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
iex> OpenTelemetry.SemConv.Incubating.ThreadAttributes.thread_id()
:"thread.id"
@spec thread_name() :: :"thread.name"

Current thread name.

Value type

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

Examples

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