Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 2.25 KB

File metadata and controls

35 lines (23 loc) · 2.25 KB

Exception

Exception Attributes

This document defines the shared attributes used to report a single exception associated with a span or log.

Attributes:

Key Stability Value Type Description Example Values
exception.message Stable string The exception message. [1] Division by zero; Can't convert 'int' object to str implicitly
exception.stacktrace Stable string 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 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.type Stable string 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. java.net.ConnectException; OSError

[1] exception.message:

Warning

This attribute may contain sensitive information.

Deprecated Exception Attributes

Deprecated exception attributes.

Attributes:

Key Stability Value Type Description Example Values
exception.escaped Deprecated
It's no longer recommended to record exceptions that are handled and do not escape the scope of a span.
boolean Indicates that the exception is escaping the scope of the span.