pub struct Compression {
pub compressor_kind: String,
pub adp_zstd_level: ConfigValue<i32>,
pub agent_zstd_level: ConfigValue<i32>,
}Expand description
Payload compression settings applied before transmission.
Fields§
§compressor_kind: StringWhich compression algorithm the encoder uses.
adp_zstd_level: ConfigValue<i32>ADP’s own zstd compression level (data_plane.serializer_zstd_compressor_level).
Defaults to 3, which is higher than the Agent’s default of 1 because ADP compresses more
cheaply than the Agent. Its provenance says whether an operator asked for the level, which
separates a configured 3 from the default 3. Read effective_zstd_level rather than this
field.
agent_zstd_level: ConfigValue<i32>The Core Agent’s zstd compression level (serializer_zstd_compressor_level).
The Agent supplies this key at its own default of 1 even when nothing sets it, so only its
provenance says whether an operator asked for the level. Read effective_zstd_level rather
than this field.
Implementations§
Source§impl Compression
impl Compression
Sourcepub fn effective_zstd_level(&self) -> i32
pub fn effective_zstd_level(&self) -> i32
Returns the effective compression level used when the algorithm is zstd.
Defaults to 3, which is higher than the Agent’s default of 1 because ADP compresses more
cheaply than the Agent. The setting is determined as followed:
- If an operator explicitly sets
data_plane.serializer_zstd_compressor_level, it wins. - If an operator explicitly sets
serializer_zstd_compressor_level, ADP uses it. - If neither is set, the ADP default of
3is used.
Trait Implementations§
Source§impl Clone for Compression
impl Clone for Compression
Source§fn clone(&self) -> Compression
fn clone(&self) -> Compression
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more