Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a factory for the spanmetrics processor.
Types ¶
type Config ¶
type Config struct { // MetricsExporter is the name of the metrics exporter to use to ship metrics. MetricsExporter string `mapstructure:"metrics_exporter"` // LatencyHistogramBuckets is the list of durations representing latency histogram buckets. // See defaultLatencyHistogramBucketsMs in processor.go for the default value. LatencyHistogramBuckets []time.Duration `mapstructure:"latency_histogram_buckets"` // Dimensions defines the list of additional dimensions on top of the provided: // - service.name // - operation // - span.kind // - status.code // The dimensions will be fetched from the span's attributes. Examples of some conventionally used attributes: // https://github.com/open-telemetry/opentelemetry-collector/blob/main/model/semconv/opentelemetry.go. Dimensions []Dimension `mapstructure:"dimensions"` // DimensionsCacheSize defines the size of cache for storing Dimensions, which helps to avoid cache memory growing // indefinitely over the lifetime of the collector. // Optional. See defaultDimensionsCacheSize in processor.go for the default value. DimensionsCacheSize int `mapstructure:"dimensions_cache_size"` AggregationTemporality string `mapstructure:"aggregation_temporality"` // MetricsEmitInterval is the time period between when metrics are flushed or emitted to the configured MetricsExporter. MetricsFlushInterval time.Duration `mapstructure:"metrics_flush_interval"` // Namespace is the namespace to use for the metrics. Namespace string `mapstructure:"namespace"` // contains filtered or unexported fields }
Config defines the configuration options for spanmetricsprocessor.
func (Config) GetAggregationTemporality ¶
func (c Config) GetAggregationTemporality() pmetric.AggregationTemporality
GetAggregationTemporality converts the string value given in the config into a AggregationTemporality. Returns cumulative, unless delta is correctly specified.
Click to show internal directories.
Click to hide internal directories.