pub enum OtlpTraceSettings {
Disabled,
Enabled {
common_settings: Settings,
},
}Expand description
Configure specific settings for the OpenTelemetry trace subscriber.
Variants§
Trait Implementations§
Source§impl Debug for OtlpTraceSettings
impl Debug for OtlpTraceSettings
Source§impl Default for OtlpTraceSettings
impl Default for OtlpTraceSettings
Source§fn default() -> OtlpTraceSettings
fn default() -> OtlpTraceSettings
Returns the “default value” for a type. Read more
Source§impl From<(&'static str, LevelFilter)> for OtlpTraceSettings
impl From<(&'static str, LevelFilter)> for OtlpTraceSettings
Source§impl From<Settings> for OtlpTraceSettings
impl From<Settings> for OtlpTraceSettings
Source§impl PartialEq for OtlpTraceSettings
impl PartialEq for OtlpTraceSettings
Source§impl SettingsToggle for OtlpTraceSettings
impl SettingsToggle for OtlpTraceSettings
Source§fn is_enabled(&self) -> bool
fn is_enabled(&self) -> bool
Whether the settings are enabled or not.
Source§fn is_disabled(&self) -> bool
fn is_disabled(&self) -> bool
The opposite of SettingsToggle::is_enabled as a helper.
impl Eq for OtlpTraceSettings
impl StructuralPartialEq for OtlpTraceSettings
Auto Trait Implementations§
impl Freeze for OtlpTraceSettings
impl RefUnwindSafe for OtlpTraceSettings
impl Send for OtlpTraceSettings
impl Sync for OtlpTraceSettings
impl Unpin for OtlpTraceSettings
impl UnwindSafe for OtlpTraceSettings
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§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,
Apply a transformation to the response body. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more