pub struct Metrics {
pub tag_cardinality: OriginTagCardinality,
pub histogram_mode: HistogramMode,
pub send_histogram_aggregations: bool,
pub resource_attributes_as_tags: bool,
pub instrumentation_scope_metadata_as_tags: bool,
pub sums: Sums,
pub tags: String,
pub summaries: Summaries,
pub delta_ttl: Duration,
}Expand description
OTLP metrics translation settings.
Fields§
§tag_cardinality: OriginTagCardinalityTag cardinality applied to entity and global tags enriched onto OTLP metrics.
Defaults to low. Set this to orchestrator or high when the additional series cardinality is acceptable.
none disables entity and global tag enrichment.
histogram_mode: HistogramModeHow explicit histogram buckets are reported.
send_histogram_aggregations: boolWhether histogram count, sum, minimum, and maximum metrics are emitted when available.
The nobuckets mode requires this setting. Defaults to false.
Whether every resource attribute is added as a raw metric tag, in addition to the semantic-convention mappings that are always applied.
Whether instrumentation scope name, version, and attributes are added as metric tags.
Defaults to true. When false, no scope tags are emitted (no n/a placeholders).
Disable this in high-cardinality scope environments where per-scope tag overhead outweighs queryability.
sums: SumsOTLP sum translation settings.
Comma-separated list of tags to add to every emitted metric.
Defaults to empty. When the static-tag resolver produces no tags, this value is preserved. When it produces one or more tags, those tags replace this value; the two sets are not merged.
summaries: SummariesOTLP summary translation settings.
delta_ttl: DurationTime-to-live for cached prior data points used when converting cumulative monotonic sums
to deltas. Defaults to 3600 seconds. Must be greater than zero.