apollo-opentelemetry 0.8.0

OpenTelemetry configuration types for Apollo platform
Documentation
//! Global attribute limits configuration.
//!
//! See the [attribute limits specification](https://opentelemetry.io/docs/specs/otel/common/#attribute-limits)
//! for details on limit behavior.

use apollo_configuration::configuration;

/// Global limits for attributes across all signals.
///
/// These limits apply to spans, log records, and other telemetry data.
/// See the [attribute limits specification](https://opentelemetry.io/docs/specs/otel/common/#attribute-limits)
/// for details.
#[configuration]
pub(crate) struct AttributeLimitsConfig {
    /// Maximum number of attributes per span, event, or link.
    ///
    /// Default: 128 per [attribute limits specification](https://opentelemetry.io/docs/specs/otel/common/#attribute-limits).
    #[config(default = 128)]
    pub(crate) attribute_count_limit: u32,

    /// Maximum length of string attribute values. Longer values will be truncated.
    ///
    /// Per the [attribute limits specification](https://opentelemetry.io/docs/specs/otel/common/#attribute-limits),
    /// there is no default length limit.
    pub(crate) attribute_value_length_limit: Option<u32>,
}