pub enum OtlpProtocol {
Http,
Grpc,
}Expand description
OTLP transport protocol type
Variants§
Implementations§
Source§impl OtlpProtocol
impl OtlpProtocol
Sourcepub fn validate_endpoint(&self, url: &mut Url) -> Result<()>
pub fn validate_endpoint(&self, url: &mut Url) -> Result<()>
Validate and correct the URL to match protocol requirements for traces.
For HTTP: Ensures the path ends with /v1/traces, appending it if necessary.
For gRPC: Ensures the path does NOT include /v1/traces.
For file URLs: Requires a local absolute path without a query or fragment.
The protocol is ignored for file export.
Sourcepub fn validate_logs_endpoint(&self, url: &mut Url) -> Result<()>
pub fn validate_logs_endpoint(&self, url: &mut Url) -> Result<()>
Validate and correct the URL to match protocol requirements for logs.
For HTTP: Ensures the path ends with /v1/logs, appending it if necessary.
For gRPC: Ensures the path does NOT include /v1/logs.
Trait Implementations§
Source§impl Clone for OtlpProtocol
impl Clone for OtlpProtocol
impl Copy for OtlpProtocol
Source§impl Debug for OtlpProtocol
impl Debug for OtlpProtocol
impl Eq for OtlpProtocol
Source§impl PartialEq for OtlpProtocol
impl PartialEq for OtlpProtocol
impl StructuralPartialEq for OtlpProtocol
Source§impl ValueEnum for OtlpProtocol
impl ValueEnum for OtlpProtocol
Auto Trait Implementations§
impl Freeze for OtlpProtocol
impl RefUnwindSafe for OtlpProtocol
impl Send for OtlpProtocol
impl Sync for OtlpProtocol
impl Unpin for OtlpProtocol
impl UnsafeUnpin for OtlpProtocol
impl UnwindSafe for OtlpProtocol
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
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<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
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> ⓘ
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
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>,
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: 1 byte
Size for each variant:
Http: 0 bytesGrpc: 0 bytes