pub struct OtelServerConfig {
pub grpc_endpoint: String,
pub http_endpoint: String,
}Expand description
OpenTelemetry server (receiver) configuration.
Configures the gRPC and HTTP endpoints for receiving OTLP data.
Fields§
§grpc_endpoint: StringgRPC endpoint address for OTLP/gRPC (e.g., “0.0.0.0:4317”).
http_endpoint: StringHTTP endpoint address for OTLP/HTTP (e.g., “0.0.0.0:4318”).
Implementations§
Source§impl OtelServerConfig
impl OtelServerConfig
pub fn component_metadata() -> ComponentMetadata
Trait Implementations§
Source§impl Clone for OtelServerConfig
impl Clone for OtelServerConfig
Source§fn clone(&self) -> OtelServerConfig
fn clone(&self) -> OtelServerConfig
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 OtelServerConfig
impl Debug for OtelServerConfig
Source§impl<'de> Deserialize<'de> for OtelServerConfig
impl<'de> Deserialize<'de> for OtelServerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl HasFieldsMetadata for OtelServerConfig
impl HasFieldsMetadata for OtelServerConfig
Source§fn fields_metadata() -> Vec<FieldMetadata>
fn fields_metadata() -> Vec<FieldMetadata>
Returns a list of metadata for all fields in the struct.
Source§impl PartialEq for OtelServerConfig
impl PartialEq for OtelServerConfig
Source§impl Serialize for OtelServerConfig
impl Serialize for OtelServerConfig
impl StructuralPartialEq for OtelServerConfig
Auto Trait Implementations§
impl Freeze for OtelServerConfig
impl RefUnwindSafe for OtelServerConfig
impl Send for OtelServerConfig
impl Sync for OtelServerConfig
impl Unpin for OtelServerConfig
impl UnsafeUnpin for OtelServerConfig
impl UnwindSafe for OtelServerConfig
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,
§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].