Skip to main content

EXCEPTION_TYPE

Constant EXCEPTION_TYPE 

pub const EXCEPTION_TYPE: &'static str;
Available on crate feature opentelemetry only.
Expand description

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.

§Examples

  • "java.net.ConnectException"
  • "OSError"