Documentation ¶
Index ¶
Constants ¶
const ( // ExceptionMessageKey is the attribute Key conforming to the "exception.message" // semantic conventions. It represents the exception message. // // Type: string // RequirementLevel: Required // Stability: stable ExceptionMessageKey = attribute.Key("exception.message") // ExceptionStacktraceKey is the attribute Key conforming to the "exception.stacktrace" // semantic conventions. It represents the stacktrace message of exception. // // Type: string // RequirementLevel: Optional // Stability: stable ExceptionStacktraceKey = attribute.Key("exception.stacktrace") // ExceptionTypeKey is the attribute Key conforming to the "exception.type" // semantic conventions. It represents the type of exception // // Type: string // RequirementLevel: Optional // Stability: stable ExceptionTypeKey = attribute.Key("exception.type") )
Describes Log Record attributes. see also https://opentelemetry.io/docs/specs/otel/logs/semantic_conventions/exceptions/#attributes
Variables ¶
This section is empty.
Functions ¶
func ExceptionMessage ¶
ExceptionMessage returns an attribute KeyValue conforming to the "exception.message" semantic conventions. It represents the exception message Examples: Division by zero; Can't convert 'int' object to str implicitly
func ExceptionStacktrace ¶
ExceptionStacktrace returns an attribute KeyValue conforming to the "exception.stacktrace" semantic conventions. It represents the exception stacktrace Examples: Exception in thread "main" java.lang.RuntimeException: ...
func ExceptionType ¶
ExceptionType returns an attribute KeyValue conforming to the "exception.type" semantic conventions. It represents the exception type Examples: java.net.ConnectException; OSError
Types ¶
This section is empty.