#[non_exhaustive]pub struct TelemetryOptions {
pub logging: Option<Logger>,
pub metrics: Option<Arc<dyn CoreMeter>>,
pub attach_service_name: bool,
pub metric_prefix: String,
pub subscriber_override: Option<Arc<dyn Subscriber + Send + Sync>>,
}Expand description
Telemetry configuration options. Construct with TelemetryOptionsBuilder
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.logging: Option<Logger>Optional logger - set as None to disable.
metrics: Option<Arc<dyn CoreMeter>>Optional metrics exporter - set as None to disable.
attach_service_name: boolIf set true (the default) explicitly attach a service_name label to all metrics. Turn this
off if your collection system supports the target_info metric from the OpenMetrics spec.
For more, see
here
metric_prefix: StringA prefix to be applied to all core-created metrics. Defaults to “temporal_”.
subscriber_override: Option<Arc<dyn Subscriber + Send + Sync>>If provided, logging config will be ignored and this explicit subscriber will be used for all logging and traces.
Trait Implementations§
Source§impl Clone for TelemetryOptions
impl Clone for TelemetryOptions
Source§fn clone(&self) -> TelemetryOptions
fn clone(&self) -> TelemetryOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TelemetryOptions
impl Debug for TelemetryOptions
Auto Trait Implementations§
impl Freeze for TelemetryOptions
impl !RefUnwindSafe for TelemetryOptions
impl Send for TelemetryOptions
impl Sync for TelemetryOptions
impl Unpin for TelemetryOptions
impl !UnwindSafe for TelemetryOptions
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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
T in a tonic::Request