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

> Independent capacities of one diagnostic context. All backing allocations are admitted during startup; these limits are not a whole-process RSS ceiling.

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

<pre />

Independent capacities of one diagnostic context. All backing allocations are admitted during startup; these limits are not a whole-process RSS ceiling.

## Fields

### `max_components: usize`

Active and retained closed registration slots shared by this context.

### `max_counters: usize`

Declared lifetime code-counter slots shared by admitted components.

### `max_events: usize`

Shared circular-history headers; zero retains summaries without event history.

### `max_window_buckets: usize`

Aggregate outcome-bucket slots shared by admitted components.

### `max_extensions: usize`

Registered extension descriptors across all retained components.

### `max_metadata_bytes: usize`

Combined admitted component-key, ownership, and extension-description bytes.

### `max_identity_bytes: usize`

Bytes admitted per component key or ownership string, at most 128.

### `max_detail_bytes: usize`

Bytes copied or formatted per observation detail, at most 4096.

### `max_correlation_bytes: usize`

Bytes admitted per request or session correlation field, at most 128.

### `detail_pool_bytes: usize`

Payload-byte capacity of the shared detail pool, rounded down to whole blocks.

### `detail_block_bytes: usize`

Payload bytes per reclaimable detail block, at least four for UTF-8 scalars.

### `max_queries: usize`

Simultaneously leased query workspaces; zero disables reads and their pool.

### `max_query_components: usize`

Maximum component rows materialized in one query page.

### `max_query_events: usize`

Maximum recent-event rows materialized in one query page.

### `max_query_counters: usize`

Code-counter rows materialized per page, independent of store reservations.

### `max_query_window_buckets: usize`

Outcome buckets materialized per page, independent of store reservations.

### `max_snapshot_bytes: usize`

Serialized bytes per query response, including its envelope and coverage.

### `query_text_bytes: usize`

Text-arena bytes reserved for each leased query workspace.

### `max_projections: usize`

Simultaneously registered callbacks; arbitrary callback captures are caller-owned.

### `max_projection_workspaces: usize`

Concurrent publications with independent payload and callback-reference storage.

### `max_owned_bytes: usize`

Startup ceiling for context backing allocations, excluding whole-process RSS.

## Implementations

### `impl DiagnosticLimits`

<pre />

#### `validate`

<pre />

Validate capacities and checked backing sizes without allocating a store.

## Trait Implementations

### `impl Clone for DiagnosticLimits`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for DiagnosticLimits`

<pre />

#### `fmt`

<pre />

### `impl Default for DiagnosticLimits`

<pre />

#### `default`

<pre />

### `impl<'de> Deserialize<'de> for DiagnosticLimitswhere DiagnosticLimits: Default,`

<pre />

#### `deserialize`

<pre />

### `impl PartialEq for DiagnosticLimits`

<pre />

#### `eq`

<pre />

#### `ne`

<pre />

### `impl Serialize for DiagnosticLimits`

<pre />

#### `serialize`

<pre />

### `impl Eq for DiagnosticLimits`

<pre />

### `impl StructuralPartialEq for DiagnosticLimits`

<pre />