> This page is for NeMo Relay, version v1.0.0.
> For other versions, use one of these documentation indexes:
> - Latest (v0.11.2) (default): https://docs.nvidia.com/nemo/relay/latest/llms.txt
> - dev: https://docs.nvidia.com/nemo/relay/dev/llms.txt
> - v1.0.0: https://docs.nvidia.com/nemo/relay/v1.0.0/llms.txt
> - v0.11.2: https://docs.nvidia.com/nemo/relay/v0.11.2/llms.txt
> - v0.10.4: https://docs.nvidia.com/nemo/relay/v0.10.4/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

> For clean Markdown of any page, append .md to the page URL. For a task-oriented documentation index, fetch https://docs.nvidia.com/nemo/relay/llms.txt. Use the documentation version matching the installed NeMo Relay package: latest follows the latest stable release, vX.Y.Z identifies a retained release snapshot, and dev documents development changes. Preserve the selected version when following links; do not mix examples or API contracts from different versions. Fetch the relevant section's /llms.txt before individual pages instead of loading a complete version index.

# OpenInference

> Export OpenInference-compatible traces through an OpenTelemetry endpoint.

OpenInference is a fixed projection of the unified OpenTelemetry exporter. It
is always available and no longer has a separate configuration section,
subscriber class, or Cargo feature.

## Plugin Configuration

Select `openinference` on an endpoint in the `opentelemetry` section:

```toml
[components.config]
version = 4

[components.config.opentelemetry]
enabled = true

[[components.config.opentelemetry.endpoints]]
type = "openinference"
endpoint = "http://localhost:6006/v1/traces"
transport = "http_binary"
service_name = "agent-service"
instrumentation_scope = "opentelemetry"
timeout_millis = 3000

[components.config.opentelemetry.endpoints.header_env]
authorization = "OTEL_AUTHORIZATION"

[components.config.opentelemetry.endpoints.resource_attributes]
"deployment.environment" = "dev"
```

The endpoint emits the existing OpenInference scope, tool, LLM, and mark
projection. It supports the `mark_projection`, `mark_exclude_names`, and
[`attribute_mappings`](./opentelemetry#attribute-mappings) controls on the typed
endpoint.

Normalized tool results emit one `llm.input_messages` entry per result with
`message.role = "tool"`, `message.tool_call_id`, and `message.content`.
Anthropic user messages that contain only `tool_result` blocks expand into
separate entries so parallel tool results retain their original order and
correlation IDs.

Set `OTEL_AUTHORIZATION` to the complete authorization header value before
activation. NeMo Relay snapshots the value when the plugin
activates. The variable must be set and nonblank. A header name cannot appear
in both `headers` and `header_env`, including names that differ only by ASCII
case. The resolved value cannot have surrounding whitespace.

For the complete endpoint field table and multi-endpoint behavior, refer to
[OpenTelemetry](/nemo/relay/v1.0.0/configure-plugins/observability/opentelemetry).

## Direct Subscriber

For direct API examples and lifecycle contracts, refer to
[Direct Subscriber](/nemo/relay/v1.0.0/reference/api/observability#direct-subscriber).