> This page is for NeMo Relay, version v0.10.0.
> For other versions, use one of these documentation indexes:
> - Latest (v0.10.0) (default): https://docs.nvidia.com/nemo/relay/latest/llms.txt
> - dev: https://docs.nvidia.com/nemo/relay/dev/llms.txt
> - v0.10.0: https://docs.nvidia.com/nemo/relay/v0.10.0/llms.txt
> - v0.9.4: https://docs.nvidia.com/nemo/relay/v0.9.4/llms.txt
> - v0.8.4: https://docs.nvidia.com/nemo/relay/v0.8.4/llms.txt
> - v0.7.3: https://docs.nvidia.com/nemo/relay/v0.7.3/llms.txt
> - v0.6.0: https://docs.nvidia.com/nemo/relay/v0.6.0/llms.txt
> - v0.5.0: https://docs.nvidia.com/nemo/relay/v0.5.0/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/relay/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Struct Open Telemetry Config

> Configuration for an OpenTelemetry subscriber exporting to a collector.

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`.

```rust
pub struct OpenTelemetryConfig { /* private fields */ }
```

Configuration for an OpenTelemetry subscriber exporting to a collector.

## Implementations

### `impl OpenTelemetryConfig`

<pre />

#### `with_service_name`

<pre />

Sets the `service.name` resource attribute.

#### `with_service_namespace`

<pre />

Sets the optional `service.namespace` resource attribute.

#### `with_service_version`

<pre />

Sets the optional `service.version` resource attribute.

#### `with_instrumentation_scope`

<pre />

Sets the instrumentation scope name.

#### `with_resource_attribute`

<pre />

Adds a resource attribute as a string key/value pair.

#### `with_mark_projection`

<pre />

Selects how point-in-time marks are represented.

#### `with_mark_exclude_names`

<pre />

Replaces the mark names excluded from tool projection.

#### `with_attribute_mapping`

<pre />

Copies a projected attribute to a second attribute name.

#### `with_attribute_mappings`

<pre />

Replaces the projected attribute aliases.

#### `with_promote_metadata_prefixes`

<pre />

Replaces the Event metadata prefixes copied to span attributes.

#### `with_promote_resource_metadata_prefixes`

<pre />

Replaces the root-scope metadata prefixes copied to resource attributes.

#### `with_completed_span_context_ttl`

<pre />

Sets how long completed scopes retain trace context for late marks.

### `impl OpenTelemetryConfig`

<pre />

#### `new`

<pre />

Creates a typed OpenTelemetry exporter for a required OTLP endpoint.

#### `with_endpoint`

<pre />

Overrides the OTLP endpoint. If unset, exporter defaults and OTEL\_\* env vars apply.

#### `with_transport`

<pre />

Selects the OTLP transport.

#### `with_header`

<pre />

Adds a header/metadata entry for the exporter.

#### `with_header_env`

<pre />

Maps an exporter header name to the environment variable supplying its value.

#### `with_timeout`

<pre />

Sets the OTLP request timeout.

## Trait Implementations

### `impl Clone for OpenTelemetryConfig`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for OpenTelemetryConfig`

<pre />

#### `fmt`

<pre />