ExceptionAttributes enum

exception.* attribute keys from the OpenTelemetry semantic-conventions attribute registry.

Inheritance
Implemented types
Available extensions

Values

exceptionEscaped → const ExceptionAttributes

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

const ExceptionAttributes('exception.escaped')
exceptionMessage → const ExceptionAttributes

The exception message.

Examples: Division by zero, Can't convert 'int' object to str implicitly

const ExceptionAttributes('exception.message')
exceptionStacktrace → const ExceptionAttributes

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: 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)

const ExceptionAttributes('exception.stacktrace')
exceptionType → const ExceptionAttributes

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: java.net.ConnectException, OSError

const ExceptionAttributes('exception.type')

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
key → String
The attribute key string as defined in the OpenTelemetry specification.
final
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMapEntry(Object value) → MapEntry<String, Object>

Available on OTelSemantic, provided by the OTelSemanticExtension extension

Converts this semantic attribute and its value to a MapEntry.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<ExceptionAttributes>
A constant List of the values in this enum, in order of their declaration.