pub struct ApmRelayConfiguration {
pub receiver_socket: String,
pub proxy_destination: String,
pub capture_entity_resolver: Option<Arc<dyn CaptureEntityResolver + Send + Sync>>,
pub bind_host: Option<String>,
pub non_local_traffic: bool,
pub receiver_port: u16,
pub tracer_flare: TracerFlareConfiguration,
pub info: InfoConfiguration,
pub workload_provider: Option<Arc<dyn WorkloadProvider + Send + Sync>>,
pub agent_client: Option<RemoteAgentClientConfiguration>,
pub semantic_registry: SemanticRegistryProvider,
pub validate_endpoint: String,
}Expand description
Configuration for the APM relay.
Holds plain values, populated by the binary that assembles the topology, plus an optional resolver for the container of a tracer connected over the Unix domain socket.
receiver_socket is an empty String rather than an Option<String>, so that “disabled” has a single
representation.
Fields§
§receiver_socket: StringUnix domain socket path the relay listens on.
Empty disables the Unix domain socket listener.
proxy_destination: StringURL of the trace-agent that every request not handled by ADP is proxied to: http://host:port or
unix:///path/to/socket.
capture_entity_resolver: Option<Arc<dyn CaptureEntityResolver + Send + Sync>>Resolver for mapping the process ID of a tracer connected over the Unix domain socket to its container.
The trace-agent finds the container of a tracer that sends no container headers from the peer credentials of
its Unix domain socket connection, but behind the relay those credentials are ADP’s. With a resolver, the relay
resolves the container from the tracer’s credentials itself, and passes it on as Datadog-Container-ID.
bind_host: Option<String>The host address to bind the APM relay TCP listeners to.
Accepts either an IP literal (for example, 192.168.1.50, ::1) or a hostname that resolves via DNS (for example, agent.internal).
Ignored when non_local_traffic is true, and binds to 127.0.0.1 when unset.
non_local_traffic: boolWhether the TCP listener accepts traffic from other hosts.
When true, the listener binds every interface, overriding bind_host, as the trace-agent does.
receiver_port: u16TCP port the trace receiver listens on.
0 disables the TCP listener.
tracer_flare: TracerFlareConfigurationSettings for forwarding tracer flares to Datadog.
info: InfoConfigurationThe trace-agent settings the relay reports on /info.
workload_provider: Option<Arc<dyn WorkloadProvider + Send + Sync>>Workload provider the tags of a tracer’s container come from, for the Datadog-Container-Tags-Hash of /info.
None when ADP runs without the core Agent: every tracer then gets the hash of no tags.
agent_client: Option<RemoteAgentClientConfiguration>Client configuration for the core Agent’s IPC API, which reports the Agent version on /info.
None when ADP runs without the core Agent: /info then reports an empty version.
semantic_registry: SemanticRegistryProviderSemantic registry the base peer tags on /info come from.
validate_endpoint: StringURL of Datadog’s /api/v2/validate, which identifies the organization of the API key for the org propagation
marker on /info.
The request uses the HTTP client settings and the API key of tracer_flare.
Trait Implementations§
Source§impl Clone for ApmRelayConfiguration
impl Clone for ApmRelayConfiguration
Source§fn clone(&self) -> ApmRelayConfiguration
fn clone(&self) -> ApmRelayConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl MemoryBounds for ApmRelayConfiguration
impl MemoryBounds for ApmRelayConfiguration
Source§fn specify_bounds(&self, builder: &mut MemoryBoundsBuilder<'_>)
fn specify_bounds(&self, builder: &mut MemoryBoundsBuilder<'_>)
Source§impl RelayBuilder for ApmRelayConfiguration
impl RelayBuilder for ApmRelayConfiguration
Source§fn outputs(&self) -> &[OutputDefinition<PayloadType>]
fn outputs(&self) -> &[OutputDefinition<PayloadType>]
Auto Trait Implementations§
impl Freeze for ApmRelayConfiguration
impl !RefUnwindSafe for ApmRelayConfiguration
impl Send for ApmRelayConfiguration
impl Sync for ApmRelayConfiguration
impl Unpin for ApmRelayConfiguration
impl UnsafeUnpin for ApmRelayConfiguration
impl !UnwindSafe for ApmRelayConfiguration
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