attr

package
v0.0.0-...-bdb246a Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceNameKey    = semconv.ServiceNameKey
	ServiceVersionKey = semconv.ServiceVersionKey

	DeviceKey              = semconv.SystemDeviceKey
	ExceptionStacktraceKey = semconv.ExceptionStacktraceKey
	ErrorMessageKey        = attribute.Key("error.message")
	ErrorIDKey             = attribute.Key("gram.error.id")
	ProcessExitCodeKey     = semconv.ProcessExitCodeKey
	ServerAddressKey       = semconv.ServerAddressKey
	DurationKey            = attribute.Key("duration")

	ComponentKey = attribute.Key("gram.component")

	ProjectIDKey    = attribute.Key("gram.project.id")
	ProjectSlugKey  = attribute.Key("gram.project.slug")
	DeploymentIDKey = attribute.Key("gram.deployment.id")
	FunctionIDKey   = attribute.Key("gram.function.id")
	AssetIDKey      = attribute.Key("gram.asset.id")
	URNKey          = attribute.Key("gram.urn")

	EventPayloadKey = attribute.Key("gram.event.payload")
	EventOriginKey  = attribute.Key("gram.event.origin")

	SpanIDKey         = attribute.Key("span.id")
	TraceIDKey        = attribute.Key("trace.id")
	DataDogTraceIDKey = attribute.Key("dd.trace_id")
	DataDogSpanIDKey  = attribute.Key("dd.span_id")
)

Variables

This section is empty.

Functions

func AssetID

func AssetID(v string) attribute.KeyValue

func Component

func Component(v string) attribute.KeyValue

func DataDogSpanID

func DataDogSpanID(v string) attribute.KeyValue

func DataDogTraceID

func DataDogTraceID(v string) attribute.KeyValue

func DeploymentID

func DeploymentID(v string) attribute.KeyValue

func Device

func Device(v string) attribute.KeyValue

func Duration

func Duration(v time.Duration) attribute.KeyValue

func Error

func Error(v error) attribute.KeyValue

func ErrorID

func ErrorID(v string) attribute.KeyValue

func ErrorMessage

func ErrorMessage(v string) attribute.KeyValue

func EventOrigin

func EventOrigin(v string) attribute.KeyValue

func EventPayload

func EventPayload(v string) attribute.KeyValue

func ExceptionStacktrace

func ExceptionStacktrace(v string) attribute.KeyValue

func FunctionID

func FunctionID(v string) attribute.KeyValue

func ProcessExitCode

func ProcessExitCode(v int) attribute.KeyValue

func ProjectID

func ProjectID(v string) attribute.KeyValue

func ProjectSlug

func ProjectSlug(v string) attribute.KeyValue

func ServerAddress

func ServerAddress(v string) attribute.KeyValue

func ServiceName

func ServiceName(v string) attribute.KeyValue

func ServiceVersion

func ServiceVersion(v string) attribute.KeyValue

func SlogAssetID

func SlogAssetID(v string) slog.Attr

func SlogComponent

func SlogComponent(v string) slog.Attr

func SlogDataDogSpanID

func SlogDataDogSpanID(v string) slog.Attr

func SlogDataDogTraceID

func SlogDataDogTraceID(v string) slog.Attr

func SlogDeploymentID

func SlogDeploymentID(v string) slog.Attr

func SlogDevice

func SlogDevice(v string) slog.Attr

func SlogDuration

func SlogDuration(v time.Duration) slog.Attr

func SlogError

func SlogError(v error) slog.Attr

func SlogErrorID

func SlogErrorID(v string) slog.Attr

func SlogErrorMessage

func SlogErrorMessage(v string) slog.Attr

func SlogEventOrigin

func SlogEventOrigin(v string) slog.Attr

func SlogEventPayload

func SlogEventPayload(v string) slog.Attr

func SlogExceptionStacktrace

func SlogExceptionStacktrace(v string) slog.Attr

func SlogFunctionID

func SlogFunctionID(v string) slog.Attr

func SlogProcessExitCode

func SlogProcessExitCode(v int) slog.Attr

func SlogProjectID

func SlogProjectID(v string) slog.Attr

func SlogProjectSlug

func SlogProjectSlug(v string) slog.Attr

func SlogServerAddress

func SlogServerAddress(v string) slog.Attr

func SlogServiceName

func SlogServiceName(v string) slog.Attr

func SlogServiceVersion

func SlogServiceVersion(v string) slog.Attr

func SlogSpanID

func SlogSpanID(v string) slog.Attr

func SlogTraceID

func SlogTraceID(v string) slog.Attr

func SlogURN

func SlogURN(v string) slog.Attr

func SpanID

func SpanID(v string) attribute.KeyValue

func TraceID

func TraceID(v string) attribute.KeyValue

func URN

func URN(v string) attribute.KeyValue

Types

type Key

type Key = attribute.Key

Jump to

Keyboard shortcuts

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