Struct Open Telemetry Endpoint Config

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub struct OpenTelemetryEndpointConfig {Show 14 fields
    pub otel_type: OpenTelemetryType,
    pub endpoint: String,
    pub mark_projection: MarkProjection,
    pub mark_exclude_names: Vec<String>,
    pub attribute_mappings: Vec<OtlpAttributeMapping>,
    pub transport: String,
    pub headers: HashMap<String, String>,
    pub header_env: 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: String,
    pub timeout_millis: u64,
}

One typed OTLP destination.

Fields

otel_type: OpenTelemetryType

Semantic projection emitted by this endpoint.

endpoint: String

Required OTLP endpoint.

mark_projection: MarkProjection

Representation used for point-in-time marks.

mark_exclude_names: Vec<String>

Mark names excluded from tool projection.

attribute_mappings: Vec<OtlpAttributeMapping>

Projected attributes copied to aliases.

transport: String

OTLP transport: http_binary or grpc.

headers: HashMap<String, String>

Extra exporter headers or metadata.

header_env: HashMap<String, String>

Exporter headers mapped to environment variable names.

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: String

Instrumentation scope name.

timeout_millis: u64

Export timeout in milliseconds.

Trait Implementations

impl Clone for OpenTelemetryEndpointConfig

impl Clone for OpenTelemetryEndpointConfig

clone

fn clone(&self) -> OpenTelemetryEndpointConfig

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for OpenTelemetryEndpointConfig

impl Debug for OpenTelemetryEndpointConfig

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'de> Deserialize<'de> for OpenTelemetryEndpointConfig

impl<'de> Deserialize<'de> for OpenTelemetryEndpointConfig

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl EditorConfig for OpenTelemetryEndpointConfig

impl EditorConfig for OpenTelemetryEndpointConfig

editor_schema

fn editor_schema() -> &'static EditorSchema

impl Serialize for OpenTelemetryEndpointConfig

impl Serialize for OpenTelemetryEndpointConfig

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,