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 21 fields
    pub otel_type: OpenTelemetryType,
    pub endpoint: String,
    pub mark_projection: MarkProjection,
    pub mark_exclude_names: Vec<String>,
    pub attribute_mappings: Vec<OtlpAttributeMapping>,
    pub promote_metadata_prefixes: Vec<String>,
    pub promote_resource_metadata_prefixes: Vec<String>,
    pub transport: String,
    pub headers: HashMap<String, String>,
    pub header_env: HashMap<String, String>,
    pub header_file: 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,
    pub max_queue_size: Option<usize>,
    pub max_export_batch_size: Option<usize>,
    pub scheduled_delay_millis: Option<u64>,
    pub completed_span_context_ttl_millis: Option<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.

promote_metadata_prefixes: Vec<String>

Literal Event metadata prefixes copied to top-level OTLP attributes.

promote_resource_metadata_prefixes: Vec<String>

Literal root-scope Event metadata prefixes copied to OTLP resource attributes.

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.

header_file: HashMap<String, String>

Exporter headers mapped to files read immediately before each export.

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

OTLP request timeout in milliseconds.

max_queue_size: Option<usize>

Maximum completed spans buffered before the endpoint drops new spans.

max_export_batch_size: Option<usize>

Maximum spans exported in one batch.

scheduled_delay_millis: Option<u64>

Maximum delay before exporting a non-full batch, in milliseconds.

completed_span_context_ttl_millis: Option<u64>

How long completed scopes retain trace context for late marks, 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,