Module defaults

Module defaults 

Source
Expand description

This is a place for re-usable Saluki-only defaults.

Important: this is not a place where we should restate Datadog Agent schema-derived defaults. Defaults that flow from the Datadog schema are defined by codegen in the appropriate crate. We only want the definitive codegen defaults rather than restating values that can drift (see #1802).

Constantsยง

DEFAULT_AGGREGATE_CONTEXT_LIMIT
Default maximum number of contexts held per aggregation window.
DEFAULT_AGGREGATE_FLUSH_INTERVAL
Default period between aggregation flushes.
DEFAULT_AGGREGATE_PASSTHROUGH_IDLE_FLUSH_TIMEOUT
Default delay before an idle passthrough buffer is flushed.
DEFAULT_AGGREGATE_WINDOW_DURATION_SECONDS
Default length of an aggregation window.
DEFAULT_CHECKS_IPC_ENDPOINT
Default Checks IPC endpoint.
DEFAULT_ENCODER_FLUSH_TIMEOUT
Default timeout before a partially filled encoder payload is flushed.
DEFAULT_ERROR_SAMPLING_ENABLED
Whether error traces are sampled independently of the base sampler by default.
DEFAULT_MAX_METRICS_PER_PAYLOAD
Default maximum number of metrics packed into a single encoder payload.
DEFAULT_RARE_SAMPLER_CARDINALITY
Default rare-sampler signature cardinality.
DEFAULT_RARE_SAMPLER_COOLDOWN_SECS
Default rare-sampler cooldown, in seconds.
DEFAULT_RARE_SAMPLER_TPS
Default rare-sampler traces-per-second budget.
DEFAULT_STRING_INTERNER_SIZE_BYTES
Default OTLP trace string interner capacity: 512 KiB.
DEFAULT_TRACE_ENV
Default environment for traces that do not provide one.
DEFAULT_ZSTD_COMPRESSOR_LEVEL
Default zstd compression level for payloads ADP sends.
MAX_STRING_INTERNER_SIZE_BYTES
Maximum OTLP trace string interner capacity: 1 GiB. Arbitrary to stop @blt from blowing us up.