pub struct OpenTelemetryGrpcOutputSettings {
pub endpoint_url: String,
pub request_timeout_seconds: u64,
pub num_tasks: usize,
pub max_batch_size: usize,
}Available on (crate features
logging or metrics or tracing or memory-profiling or telemetry-server) and crate feature telemetry-otlp-grpc only.Expand description
OpenTelemetry output settings.
Fields§
§endpoint_url: StringThe URL of the endpoint that will receive the telemetry data.
§Default
Default value is the standard gRPC endpoints URL: http://localhost:4317.
See: https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/#otel_exporter_otlp_endpoint
request_timeout_seconds: u64Output request timeout in seconds.
An error will be logged (if logging is enabled for the service) if timeout is reached.
§Default
Default value is 10 seconds.
num_tasks: usizeNumber of concurrent tasks to spawn for output.
A higher number means more spans can be collected in parallel in a multi-threaded runtime. All tasks share a gRPC channel, but can send RPCs in parallel. The default is 1 task.
max_batch_size: usizeMaximum number of entries to be batched together and sent in one request.
§Default
Default value is 512.
Trait Implementations§
Source§impl Clone for OpenTelemetryGrpcOutputSettings
impl Clone for OpenTelemetryGrpcOutputSettings
Source§fn clone(&self) -> OpenTelemetryGrpcOutputSettings
fn clone(&self) -> OpenTelemetryGrpcOutputSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for OpenTelemetryGrpcOutputSettings
impl<'de> Deserialize<'de> for OpenTelemetryGrpcOutputSettings
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
Auto Trait Implementations§
impl Freeze for OpenTelemetryGrpcOutputSettings
impl RefUnwindSafe for OpenTelemetryGrpcOutputSettings
impl Send for OpenTelemetryGrpcOutputSettings
impl Sync for OpenTelemetryGrpcOutputSettings
impl Unpin for OpenTelemetryGrpcOutputSettings
impl UnsafeUnpin for OpenTelemetryGrpcOutputSettings
impl UnwindSafe for OpenTelemetryGrpcOutputSettings
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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