Documentation
¶
Overview ¶
Package attribute provides typed key-value pairs for annotating trace spans.
Use this package to attach contextual information to spans when tracing operations in your application. Attributes support string, integer, float, and boolean value types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attribute ¶
type Attribute struct {
// contains filtered or unexported fields
}
Attribute represents a key-value pair with a specific type.
func (*Attribute) FloatValue ¶
FloatValue returns the attribute's value as a float64.
func (*Attribute) StringValue ¶
StringValue returns the attribute's value as a string.
Click to show internal directories.
Click to hide internal directories.