pub struct InfoConfiguration {Show 24 fields
pub default_env: String,
pub target_traces_per_second: f64,
pub max_events_per_second: f64,
pub receiver_port: u16,
pub receiver_socket: String,
pub connection_limit: u32,
pub receiver_timeout: u32,
pub max_request_bytes: u64,
pub statsd_port: u16,
pub max_memory: f64,
pub max_cpu: f64,
pub analyzed_spans_by_service: HashMap<String, HashMap<String, f64>>,
pub features: Vec<String>,
pub probabilistic_sampler_enabled: bool,
pub compute_stats_by_span_kind: bool,
pub peer_tags_aggregation: bool,
pub custom_peer_tags: Vec<String>,
pub telemetry_enabled: bool,
pub remote_configuration_enabled: bool,
pub obfuscation: InfoObfuscation,
pub replace_tags: Vec<InfoReplaceRule>,
pub filter_tags: InfoTagFilters,
pub filter_tags_regex: InfoTagFilters,
pub ignore_resources: Vec<String>,
}Expand description
The trace-agent settings /info reports, as the trace-agent reads them.
Fields§
§default_env: StringDefault trace environment, normalized (config.default_env).
target_traces_per_second: f64Target traces sampled per second (config.target_tps).
max_events_per_second: f64Maximum events sampled per second (config.max_eps).
receiver_port: u16TCP port the receiver listens on, 0 when disabled (config.receiver_port).
receiver_socket: StringUnix domain socket path the receiver listens on, empty when disabled (config.receiver_socket).
connection_limit: u32Receiver connection limit, 0 for none (config.connection_limit).
receiver_timeout: u32Receiver request timeout, in seconds, 0 for the default (config.receiver_timeout).
max_request_bytes: u64Maximum receiver request body size, in bytes (config.max_request_bytes).
statsd_port: u16DogStatsD port (config.statsd_port).
max_memory: f64Memory, in bytes, the trace-agent aims to stay under, 0 for no limit (config.max_memory).
max_cpu: f64CPU, as a fraction of a core, the trace-agent aims to stay under, 0 for no limit (config.max_cpu).
analyzed_spans_by_service: HashMap<String, HashMap<String, f64>>Event extraction rates by service and operation name (config.analyzed_spans_by_service).
features: Vec<String>Beta APM feature flags, in configuration order (feature_flags).
probabilistic_sampler_enabled: boolWhether the probabilistic sampler is enabled, in which case tracers must keep every trace (client_drop_p0s).
compute_stats_by_span_kind: boolWhether stats are computed by span kind (span_kinds_stats_computed).
Whether stats are aggregated by peer tags (peer_tags).
Peer tags configured on top of the semantic registry’s (peer_tags).
telemetry_enabled: boolWhether the trace-agent proxies tracer telemetry (endpoints).
remote_configuration_enabled: boolWhether Remote Configuration is enabled, in which case the trace-agent serves tracers’ configuration
(endpoints).
obfuscation: InfoObfuscationObfuscation settings (config.obfuscation and obfuscation_version).
Tag replacement rules (config.obfuscation.tag_replace_rules).
Tag rules traces are kept or dropped by (filter_tags).
Tag rules whose values are regular expressions (filter_tags_regex).
ignore_resources: Vec<String>Patterns for the resources whose traces are dropped (ignore_resources).
Trait Implementations§
Source§impl Clone for InfoConfiguration
impl Clone for InfoConfiguration
Source§fn clone(&self) -> InfoConfiguration
fn clone(&self) -> InfoConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InfoConfiguration
impl Debug for InfoConfiguration
Source§impl Default for InfoConfiguration
impl Default for InfoConfiguration
Source§fn default() -> InfoConfiguration
fn default() -> InfoConfiguration
Auto Trait Implementations§
impl Freeze for InfoConfiguration
impl RefUnwindSafe for InfoConfiguration
impl Send for InfoConfiguration
impl Sync for InfoConfiguration
impl Unpin for InfoConfiguration
impl UnsafeUnpin for InfoConfiguration
impl UnwindSafe for InfoConfiguration
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