For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • About NVIDIA NeMo Relay
    • Overview
    • Architecture
    • Ecosystem
    • Concepts
    • Release Notes
  • Getting Started
    • Agent Runtime Primer
    • Prerequisites
    • Installation
    • Configuration / Setup
    • Quick Start
  • NVIDIA NeMo Relay CLI
    • About
    • Basic Usage
    • Claude Code
    • Codex
    • Cursor
    • Hermes Agent
  • Supported Integrations
    • About
    • OpenClaw Plugin Guide
    • LangChain Integration Guide
    • LangGraph Integration Guide
    • Deep Agents Integration Guide
  • Instrument Applications
    • About
    • Adding Scopes and Marks
    • Instrument a Tool Call
    • Instrument an LLM Call
    • Add Middleware
    • Code Examples
  • Observability Plugin
    • About
    • Configuration
    • Agent Trajectory Interchange Format (ATIF)
    • Agent Trajectory Observability Format (ATOF)
    • OpenTelemetry
    • OpenInference
  • Adaptive Plugin
    • About
    • Configuration
    • Adaptive Cache Governor (ACG)
    • Adaptive Hints
  • NeMo Guardrails Plugin
    • About
    • Configuration
  • Integrate into Frameworks
    • About
    • Adding Scopes
    • Wrap Tool Calls
    • Wrap LLM Calls
    • Handle Non-Serializable Data
    • Using Codecs
    • Provider Codecs
    • Provider Response Codecs
    • Code Examples
  • Build Plugins
    • About
    • Define a Plugin
    • Validate Plugin Configuration
    • Plugin Configuration Files
    • Register Plugin Behavior
    • Design Plugin Configuration
    • NeMo Guardrails Example Plugin
    • Code Examples
  • Contribute
    • About
    • Development Setup
    • Workflow and Reviews
    • Testing and Documentation
  • Reference
    • APIs
      • Python Library Reference
      • Node.js Library Reference
      • Rust Library Reference
        • nemo-relay
          • api
          • codec
          • config_editor
          • error
          • json
          • observability
            • atif
            • atof
            • openinference
              • OpenInferenceConfig
              • OpenInferenceSubscriber
              • OpenInferenceError
              • OtlpTransport
              • Result
            • otel
            • plugin_component
          • plugin
          • plugins
          • stream
          • editor_config
        • nemo-relay-adaptive
        • nemo-relay-ffi
    • Performance
  • Resources
    • Support and FAQs
    • Glossary
    • Troubleshooting Guide
    • Community
    • Legal
NVIDIANVIDIA
Developer-friendly docs for your API
Privacy Policy | Your Privacy Choices | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact

Copyright © 2026, NVIDIA Corporation.

LogoLogo
On this page
  • Implementations
  • impl OpenInferenceConfig
  • new
  • with_transport
  • with_service_name
  • with_endpoint
  • with_header
  • with_resource_attribute
  • with_timeout
  • with_service_namespace
  • with_service_version
  • with_instrumentation_scope
  • Trait Implementations
  • impl Clone for OpenInferenceConfig
  • clone
  • clone_from
  • impl Debug for OpenInferenceConfig
  • fmt
  • impl Default for OpenInferenceConfig
  • default
ReferenceAPIsRust Library Referencenemo-relayobservabilityopeninference

Struct Open Inference Config

||View as Markdown|
Previous

Module openinference

Next

Struct Open Inference Subscriber

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

1pub struct OpenInferenceConfig { /* private fields */ }

Configuration for the OpenInference subscriber.

Implementations

impl OpenInferenceConfig

impl OpenInferenceConfig

new

pub fn new() -> Self

Creates a config with sensible defaults.

with_transport

pub fn with_transport(self, transport: OtlpTransport) -> Self

Selects the OTLP transport.

with_service_name

pub fn with_service_name(self, service_name: impl Into<String>) -> Self

Sets the service.name resource attribute.

with_endpoint

pub fn with_endpoint(self, endpoint: impl Into<String>) -> Self

Overrides the OTLP endpoint. If unset, exporter defaults and OTEL_* env vars apply.

with_header

pub fn with_header(
    self,
    key: impl Into<String>,
    value: impl Into<String>,
) -> Self

Adds a header/metadata entry for the exporter.

with_resource_attribute

pub fn with_resource_attribute(
    self,
    key: impl Into<String>,
    value: impl Into<String>,
) -> Self

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

with_timeout

pub fn with_timeout(self, timeout: Duration) -> Self

Sets the OTLP request timeout.

with_service_namespace

pub fn with_service_namespace(self, namespace: impl Into<String>) -> Self

Sets the service namespace resource attribute.

with_service_version

pub fn with_service_version(self, version: impl Into<String>) -> Self

Sets the service version resource attribute.

with_instrumentation_scope

pub fn with_instrumentation_scope(self, scope: impl Into<String>) -> Self

Sets the instrumentation scope name used for emitted spans.

Trait Implementations

impl Clone for OpenInferenceConfig

impl Clone for OpenInferenceConfig

clone

fn clone(&self) -> OpenInferenceConfig

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for OpenInferenceConfig

impl Debug for OpenInferenceConfig

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for OpenInferenceConfig

impl Default for OpenInferenceConfig

default

fn default() -> Self