Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
Configuration for the OpenTelemetry subscriber.
impl OpenTelemetryConfigimpl OpenTelemetryConfig
http_binarypub fn http_binary(service_name: impl Into<String>) -> Self
Creates an HTTP OTLP config for the given service name.
grpcpub fn grpc(service_name: impl Into<String>) -> Self
Creates a gRPC OTLP config for the given service name.
with_endpointpub fn with_endpoint(self, endpoint: impl Into<String>) -> Self
Overrides the OTLP endpoint. If unset, exporter defaults and OTEL_* env vars apply.
with_headerpub fn with_header(
self,
key: impl Into<String>,
value: impl Into<String>,
) -> Self
Adds a header/metadata entry for the exporter.
with_resource_attributepub fn with_resource_attribute(
self,
key: impl Into<String>,
value: impl Into<String>,
) -> Self
Adds a resource attribute as a string key/value pair.
with_timeoutpub fn with_timeout(self, timeout: Duration) -> Self
Sets the OTLP request timeout.
with_service_namespacepub fn with_service_namespace(self, namespace: impl Into<String>) -> Self
Sets the service namespace resource attribute.
with_service_versionpub fn with_service_version(self, version: impl Into<String>) -> Self
Sets the service version resource attribute.
with_instrumentation_scopepub fn with_instrumentation_scope(self, scope: impl Into<String>) -> Self
Sets the instrumentation scope name used for emitted spans.
impl Clone for OpenTelemetryConfigimpl Clone for OpenTelemetryConfig
clonefn clone(&self) -> OpenTelemetryConfig
clone_fromfn clone_from(&mut self, source: &Self)
impl Debug for OpenTelemetryConfigimpl Debug for OpenTelemetryConfig
fmtfn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for OpenTelemetryConfigimpl Default for OpenTelemetryConfig
defaultfn default() -> Self