> 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 Component Spec

> Top-level observability component wrapper.

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

<pre />

Top-level observability component wrapper.

Use this wrapper when constructing a [`PluginComponentSpec`](/reference/api/rust-library-reference/nemo-relay/plugin/struct-plugincomponentspec) from Rust instead of hand-writing the generic plugin component shape. The component kind is always [`OBSERVABILITY_PLUGIN_KIND`](/reference/api/rust-library-reference/nemo-relay/observability/plugin_component/constant-observability-plugin-kind).

## Fields

### `enabled: bool`

Whether the observability component should be activated.

### `config: ObservabilityConfig`

Observability config for this top-level component.

## Implementations

### `impl ComponentSpec`

<pre />

#### `new`

<pre />

Creates an enabled observability component spec.

The returned component can be converted into the generic plugin config entry with `PluginComponentSpec::from(...)`.

## Trait Implementations

### `impl Clone for ComponentSpec`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for ComponentSpec`

<pre />

#### `fmt`

<pre />

### `impl From<ComponentSpec> for PluginComponentSpec`

<pre />

#### `from`

<pre />