> This page is for NeMo Relay, version Latest (v0.10.0) (default).
> 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 File Sink Config

> Configuration for an OpenTelemetry subscriber writing OTLP to a local file.

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

Configuration for an OpenTelemetry subscriber writing OTLP to a local file.

Carries no endpoint, transport, headers, or timeout: a file destination has no use for any of them, so they are absent rather than rejected.

## Implementations

### `impl OpenTelemetryFileSinkConfig`

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

<pre />

#### `new`

<pre />

Creates a config writing OTLP to the file `sink` describes.

#### `sink`

<pre />

Returns the file this config writes to.

## Trait Implementations

### `impl Clone for OpenTelemetryFileSinkConfig`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for OpenTelemetryFileSinkConfig`

<pre />

#### `fmt`

<pre />