semconv

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
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

func ExceptionMessage(val string) attribute.KeyValue

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

func ExceptionStacktrace(val string) attribute.KeyValue

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

func ExceptionType(val string) attribute.KeyValue

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL