> 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 Metric Config

> Configuration for an OTLP metric subscriber.

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 OpenTelemetryMetricConfig { /* private fields */ }
```

Configuration for an OTLP metric subscriber.

## Implementations

### `impl OpenTelemetryMetricConfig`

<pre />

#### `new`

<pre />

Create a metric exporter for a required OTLP endpoint.

#### `with_transport`

<pre />

Select the OTLP transport.

#### `with_header`

<pre />

Add an exporter header or gRPC metadata entry.

#### `with_resource_attribute`

<pre />

Add an OpenTelemetry resource attribute.

#### `with_service_name`

<pre />

Set the `service.name` resource attribute.

#### `with_service_namespace`

<pre />

Set the optional `service.namespace` resource attribute.

#### `with_service_version`

<pre />

Set the optional `service.version` resource attribute.

#### `with_instrumentation_scope`

<pre />

Set the instrumentation scope name.

#### `with_timeout`

<pre />

Set the OTLP request timeout.

#### `with_export_interval`

<pre />

Set the interval between metric collections.

#### `with_temporality`

<pre />

Set the preferred aggregation temporality.

#### `with_max_instruments`

<pre />

Set the maximum number of distinct instrument names retained by this endpoint.

#### `with_cardinality_limit`

<pre />

Set the SDK series cardinality limit per instrument.

## Trait Implementations

### `impl Clone for OpenTelemetryMetricConfig`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for OpenTelemetryMetricConfig`

<pre />

#### `fmt`

<pre />