Struct Otlp Section Config
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub struct OtlpSectionConfig {
pub enabled: bool,
pub transport: String,
pub endpoint: Option<String>,
pub headers: HashMap<String, String>,
pub resource_attributes: HashMap<String, String>,
pub service_name: String,
pub service_namespace: Option<String>,
pub service_version: Option<String>,
pub instrumentation_scope: Option<String>,
pub timeout_millis: u64,
}
Shared OTLP exporter config for OpenTelemetry and OpenInference.
The opentelemetry and openinference sections share the same shape but construct different subscriber implementations. Both sections are disabled by default and use http_binary transport unless configured otherwise.
Fields
enabled: bool
Whether the subscriber is active.
transport: String
OTLP transport: http_binary or grpc.
endpoint: Option<String>
OTLP endpoint.
headers: HashMap<String, String>
Extra exporter headers or metadata.
resource_attributes: HashMap<String, String>
Extra resource attributes.
service_name: String
service.name resource attribute.
service_namespace: Option<String>
Optional service.namespace resource attribute.
service_version: Option<String>
Optional service.version resource attribute.
instrumentation_scope: Option<String>
Instrumentation scope name.
timeout_millis: u64
Export timeout in milliseconds.
Trait Implementations
impl Clone for OtlpSectionConfig
impl Clone for OtlpSectionConfig
clone
fn clone(&self) -> OtlpSectionConfig
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for OtlpSectionConfig
impl Debug for OtlpSectionConfig
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for OtlpSectionConfig
impl Default for OtlpSectionConfig
default
fn default() -> Self
impl<'de> Deserialize<'de> for OtlpSectionConfig
impl<'de> Deserialize<'de> for OtlpSectionConfig
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl EditorConfig for OtlpSectionConfig
impl EditorConfig for OtlpSectionConfig
editor_schema
fn editor_schema() -> &'static EditorSchema
impl Serialize for OtlpSectionConfig
impl Serialize for OtlpSectionConfig
serialize
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,