Module: OpenTelemetry::SemConv::EXCEPTION

Defined in:
lib/opentelemetry/semconv/exception/attributes.rb

Attribute Names collapse

EXCEPTION_ESCAPED =
Deprecated.

“It’s no longer recommended to record exceptions that are handled and do not escape the scope of a span.\n”, “reason”: “obsoleted”

Note:

Stability Level: stable

Indicates that the exception is escaping the scope of the span.

'exception.escaped'
EXCEPTION_MESSAGE =
Note:

Stability Level: stable

The exception message.

Examples:

Sample Values

Division by zero
Can't convert 'int' object to str implicitly
'exception.message'
EXCEPTION_STACKTRACE =
Note:

Stability Level: stable

A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG.

Examples:

Sample Values

Exception in thread "main" java.lang.RuntimeException: Test exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at com.example.GenerateTrace.main(GenerateTrace.java:5)
'exception.stacktrace'
EXCEPTION_TYPE =
Note:

Stability Level: stable

The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it.

Examples:

Sample Values

java.net.ConnectException
OSError
'exception.type'