pub struct OtlpLogsConfig { /* private fields */ }Expand description
Configuration for OTLP logs export.
Implementations§
Source§impl OtlpLogsConfig
impl OtlpLogsConfig
Sourcepub fn new(
service_name: impl Into<String>,
endpoint: Url,
protocol: OtlpProtocol,
) -> Result<Self>
pub fn new( service_name: impl Into<String>, endpoint: Url, protocol: OtlpProtocol, ) -> Result<Self>
Creates a new OTLP logs configuration.
Sourcepub fn with_service_version(self, version: impl Into<String>) -> Self
pub fn with_service_version(self, version: impl Into<String>) -> Self
Sets the service version for OTLP resource identification.
Sourcepub fn service_name(&self) -> &str
pub fn service_name(&self) -> &str
Returns the service name.
Sourcepub const fn protocol(&self) -> OtlpProtocol
pub const fn protocol(&self) -> OtlpProtocol
Returns the transport protocol.
Trait Implementations§
Source§impl Clone for OtlpLogsConfig
impl Clone for OtlpLogsConfig
Auto Trait Implementations§
impl Freeze for OtlpLogsConfig
impl RefUnwindSafe for OtlpLogsConfig
impl Send for OtlpLogsConfig
impl Sync for OtlpLogsConfig
impl Unpin for OtlpLogsConfig
impl UnsafeUnpin for OtlpLogsConfig
impl UnwindSafe for OtlpLogsConfig
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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> ⓘ
§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> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 144 bytes