pub struct ForwarderConfiguration {Show 21 fields
pub endpoint_concurrency: usize,
pub endpoint_concurrency_multiplier: usize,
pub request_timeout_secs: u64,
pub endpoint_buffer_size: usize,
pub endpoint: EndpointConfiguration,
pub retry: RetryConfiguration,
pub proxy: ProxyConfiguration,
pub opw_metrics: OpwMetricsConfiguration,
pub http_protocol: ForwarderHttpProtocol,
pub connection_reset_interval_secs: u64,
pub stop_wait_for_inflight: bool,
pub v3_api: V3ApiConfig,
pub use_v3_api: UseV3ApiConfig,
pub serializer_compressor_kind: String,
pub skip_ssl_validation: bool,
pub sslkeylogfile: String,
pub min_tls_version: String,
pub tls_handshake_timeout: Duration,
pub allow_arbitrary_tags: bool,
pub api_key_validation_interval_mins: i64,
pub routing_targets: Option<Arc<RoutingTargetCatalog>>,
}Expand description
Forwarder settings, such as retries and concurrency, mirroring those of the Datadog Agent’s forwarder.
They are used with existing primitives, such as the retry policies in saluki_io::net::util::retry.
Fields§
§endpoint_concurrency: usizeMaximum number of concurrent requests for an individual endpoint.
If set to 0, request concurrency is clamped to 1.
endpoint_concurrency_multiplier: usizeMultiplier for endpoint request concurrency.
This value also sizes the HTTP idle connection pool. If set to 0, idle connection retention is disabled and the concurrency multiplier is treated as 1. This setting does not create worker tasks.
request_timeout_secs: u64Request timeout, in seconds.
endpoint_buffer_size: usizeMaximum number of pending requests for an individual endpoint.
endpoint: EndpointConfigurationEndpoints payloads are sent to.
retry: RetryConfigurationRetry configuration.
proxy: ProxyConfigurationProxy configuration.
opw_metrics: OpwMetricsConfigurationMetrics routing to an alternate intake.
http_protocol: ForwarderHttpProtocolHTTP protocol selection for outgoing forwarder requests.
auto negotiates HTTP/2 with HTTP/1.1 fallback; http1 forces HTTP/1.1 only.
connection_reset_interval_secs: u64Connection reset interval, in seconds.
stop_wait_for_inflight: boolWhether in-flight requests are allowed to finish when the forwarder shuts down.
When false, in-flight requests are aborted when shutdown begins and their transactions are requeued, so that
they are persisted along with the other pending transactions.
v3_api: V3ApiConfigV3 API configuration for per-endpoint V3 support.
This is shared with the metrics encoder and used by the I/O layer to filter payloads based on endpoint URL matching.
use_v3_api: UseV3ApiConfigAgent-compatible V3 API configuration.
serializer_compressor_kind: StringPayload compressor kind used by the metrics serializer.
V3 metrics intake is incompatible with zlib/deflate, so the forwarder needs this setting to keep endpoint filtering aligned with the encoder when zlib forces metrics back to V2.
skip_ssl_validation: boolWhether to disable TLS certificate validation for Datadog intake forwarding.
When set, HTTPS clients built for the shared Datadog forwarder accept invalid server certificates. Only deployments that intentionally route Datadog intake traffic through endpoints with invalid or self-signed certificates should enable this.
sslkeylogfile: StringFile path to write TLS key material to for all HTTPS connections to the Datadog backend.
When non-empty, enables the logging of TLS key material to the given file path, in the NSS Key Log format, which can be used for debugging TLS issues, as well as decrypting captured TLS traffic in tools such as Wireshark.
min_tls_version: StringMinimum TLS protocol version for Datadog intake forwarding, such as tlsv1.2.
TLS 1.0 and TLS 1.1 are accepted for compatibility with core Agent configuration, but Saluki clamps them to TLS 1.2 because rustls does not support older protocol versions. An empty value means TLS 1.2, and an invalid value falls back to it with a warning.
tls_handshake_timeout: DurationTimeout for completing the TLS handshake after a connection is established, for Datadog intake forwarding.
This bounds only the TLS handshake step, distinct from forwarder_timeout, which bounds the entire request. A
value of 0 disables the handshake deadline entirely, matching the core Agent convention for this setting.
Whether to signal that the backend should allow arbitrary tag values.
When set, the Datadog forwarder adds Allow-Arbitrary-Tag-Value: true to every outbound intake request. The
data plane does not perform local tag validation based on this setting.
api_key_validation_interval_mins: i64How often API keys are checked for validity against the intake, in minutes.
A non-positive value falls back to the default with a warning.
routing_targets: Option<Arc<RoutingTargetCatalog>>Routing targets that metrics payloads may be addressed to.
When set, each endpoint is labeled with its routing target so that a payload addressed to specific targets reaches only those. When unset, no endpoint is a target, and a payload addressed to specific targets reaches none of them.
The catalog must be the one shared with every encoder that addresses payloads to this forwarder, and it must have been built from the same endpoint configuration as this forwarder.
Trait Implementations§
Source§impl Clone for ForwarderConfiguration
impl Clone for ForwarderConfiguration
Source§fn clone(&self) -> ForwarderConfiguration
fn clone(&self) -> ForwarderConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ForwarderConfiguration
impl RefUnwindSafe for ForwarderConfiguration
impl Send for ForwarderConfiguration
impl Sync for ForwarderConfiguration
impl Unpin for ForwarderConfiguration
impl UnsafeUnpin for ForwarderConfiguration
impl UnwindSafe for ForwarderConfiguration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Source§fn compression(self) -> Compression<Self>where
Self: Sized,
fn compression(self) -> Compression<Self>where
Self: Sized,
Source§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
Source§fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
413 Payload Too Large responses. Read moreSource§impl<T> Track for T
impl<T> Track for T
Source§fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
Tracked wrapper. Read moreSource§fn in_current_resource_group(self) -> Tracked<Self>
fn in_current_resource_group(self) -> Tracked<Self>
Tracked wrapper. Read more