> 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 Metric Measurement

> One recording operation in a Relay metric mark.

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 />

One recording operation in a Relay metric mark.

## Fields

### `name: String`

OpenTelemetry instrument name.

### `kind: MetricKind`

Instrument kind used to record the value.

### `value_type: MetricValueType`

Explicit numeric representation of `value`.

### `value: Value`

Numeric recording value.

### `unit: Option<String>`

Optional OpenTelemetry instrument unit.

### `description: Option<String>`

Optional OpenTelemetry instrument description.

### `attributes: Option<Value>`

Optional low-cardinality OpenTelemetry attributes object.

### `boundaries: Option<Vec<f64>>`

Optional explicit histogram bucket boundaries.

## Implementations

### `impl MetricMeasurement`

<pre />

#### `builder`

<pre />

Create a builder for building `MetricMeasurement`. On the builder, call `.name(...)`, `.kind(...)`, `.value_type(...)`, `.value(...)`, `.unit(...)`(optional), `.description(...)`(optional), `.attributes(...)`(optional), `.boundaries(...)`(optional) to set the values of the fields. Finally, call `.build()` to create the instance of `MetricMeasurement`.

## Trait Implementations

### `impl Clone for MetricMeasurement`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for MetricMeasurement`

<pre />

#### `fmt`

<pre />

### `impl<'de> Deserialize<'de> for MetricMeasurement`

<pre />

#### `deserialize`

<pre />

### `impl PartialEq for MetricMeasurement`

<pre />

#### `eq`

<pre />

#### `ne`

<pre />

### `impl Serialize for MetricMeasurement`

<pre />

#### `serialize`

<pre />

### `impl StructuralPartialEq for MetricMeasurement`

<pre />