Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecordError ¶
Taken from unkey: https://github.com/unkeyed/unkey/blob/f847d33454dede29392ae19eae498b9503506db2/apps/agent/pkg/tracing/util.go#L8 RecordError sets the status of the span to error if the error is not nil.
func WithAttributes ¶
func WithAttributes(span trace.Span, attrs ...AttributeKV)
Types ¶
type AttributeKV ¶
type AttributeKV struct { Key AttributeKey Value any }
AttributeKV is a wrapper for otel attributes KV
type AttributeKey ¶
type AttributeKey string
Click to show internal directories.
Click to hide internal directories.