Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Spans []MetricInfo `mapstructure:"spans"`
}
Config for the connector
type Counters ¶
type Counters struct { SumSuffix string `mapstructure:"sum_suffix"` CountSuffix string `mapstructure:"count_suffix"` }
Counters aggregate spans as 2 cummulative sum metric with delta temporality. The configs allow adding suffixes to the metric names, the suffix defaults to `.sum` for sum metric and `.count` for count metric.
type ExplicitHistogram ¶
type ExplicitHistogram struct {
Buckets []float64 `mapstructure:"buckets"`
}
type ExponentialHistogram ¶
type ExponentialHistogram struct {
MaxSize int32 `mapstructure:"max_size"`
}
type Histogram ¶
type Histogram struct { Explicit *ExplicitHistogram `mapstructure:"explicit"` Exponential *ExponentialHistogram `mapstructure:"exponential"` }
type MetricInfo ¶
type MetricInfo struct { Name string `mapstructure:"name"` Description string `mapstructure:"description"` // EphemeralResourceAttribute (experimental) adds a randomly generated // ID as a resource attribute. The random ID is unique to a running // collector instance. EphemeralResourceAttribute bool `mapstructure:"ephemeral_resource_attribute"` // IncludeResourceAttributes is a list of resource attributes that // needs to be included in the generated metric. If no resource // attribute is included in the list then all attributes are included. // Note that configuring this setting might cause the produced metric // to lose its identity or cause identity conflict. Check out the // `ephemeral_resource_attribute`. IncludeResourceAttributes []Attribute `mapstructure:"include_resource_attributes"` Attributes []Attribute `mapstructure:"attributes"` Unit MetricUnit `mapstructure:"unit"` Histogram Histogram `mapstructure:"histogram"` Summary *Summary `mapstructure:"summary"` Counters *Counters `mapstructure:"counters"` }
MetricInfo for a data type
type MetricUnit ¶
type MetricUnit string
const ( MetricUnitNs MetricUnit = "ns" MetricUnitUs MetricUnit = "us" MetricUnitMs MetricUnit = "ms" MetricUnitS MetricUnit = "s" )
Click to show internal directories.
Click to hide internal directories.