Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tag ¶
type Tag struct {
Name string `json:"name"`
Value interface{} `json:"value"`
}
Tag represents a single key-value pair used to add dimensions to a metric.
func (*Tag) ToAttribute ¶
ToAttribute converts a single Tag to an OpenTelemetry KeyValue attribute, automatically detecting the value type.
type Tags ¶
type Tags []Tag
Tags is a slice of Tag objects.
func (*Tags) ToAttributes ¶
ToAttributes converts a slice of Tags to an array of OpenTelemetry KeyValue attributes.
func (*Tags) ToStringArray ¶
ToStringArray converts a slice of Tags into a string array formatted for Datadog ("key:value").
Click to show internal directories.
Click to hide internal directories.