> 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 full documentation content, see https://docs.nvidia.com/nemo/relay/llms-full.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 Inference Config

> Configuration for the OpenInference subscriber.

Generated from `cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi`.

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

Configuration for the OpenInference subscriber.

## Implementations

### `impl OpenInferenceConfig`

<pre />

#### `new`

<pre />

Creates a config with sensible defaults.

#### `with_transport`

<pre />

Selects the OTLP transport.

#### `with_service_name`

<pre />

Sets the `service.name` resource attribute.

#### `with_endpoint`

<pre />

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

#### `with_header`

<pre />

Adds a header/metadata entry for the exporter.

#### `with_resource_attribute`

<pre />

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

#### `with_timeout`

<pre />

Sets the OTLP request timeout.

#### `with_service_namespace`

<pre />

Sets the service namespace resource attribute.

#### `with_service_version`

<pre />

Sets the service version resource attribute.

#### `with_instrumentation_scope`

<pre />

Sets the instrumentation scope name used for emitted spans.

## Trait Implementations

### `impl Clone for OpenInferenceConfig`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for OpenInferenceConfig`

<pre />

#### `fmt`

<pre />

### `impl Default for OpenInferenceConfig`

<pre />

#### `default`

<pre />