Package io.opentelemetry.semconv
Class ExceptionAttributes
java.lang.Object
io.opentelemetry.semconv.ExceptionAttributes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.opentelemetry.api.common.AttributeKey<String> The exception message.static final io.opentelemetry.api.common.AttributeKey<String> A stacktrace as a string in the natural representation for the language runtime.static final io.opentelemetry.api.common.AttributeKey<String> The type of the exception (its fully-qualified class name, if applicable). -
Method Summary
-
Field Details
-
EXCEPTION_MESSAGE
The exception message.Notes:
[!WARNING]
This attribute may contain sensitive information.
-
EXCEPTION_STACKTRACE
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. -
EXCEPTION_TYPE
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.Notes:
If the recorded exception type is a wrapper that is not meaningful for failure classification, instrumentation MAY use the type of the inner exception instead. For example, in Go, errors created with
fmt.Errorfusing%wMAY be unwrapped when the wrapper type does not help classify the failure.
-