Class ExceptionAttributes

java.lang.Object
io.opentelemetry.semconv.ExceptionAttributes

public final class ExceptionAttributes extends Object
  • Field Details

    • EXCEPTION_MESSAGE

      public static final io.opentelemetry.api.common.AttributeKey<String> EXCEPTION_MESSAGE
      The exception message.

      Notes:

      [!WARNING]

      This attribute may contain sensitive information.

    • EXCEPTION_STACKTRACE

      public static final io.opentelemetry.api.common.AttributeKey<String> 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

      public static final io.opentelemetry.api.common.AttributeKey<String> 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.Errorf using %w MAY be unwrapped when the wrapper type does not help classify the failure.