# `Vllm.Config.ObservabilityConfig`
[🔗](https://github.com/nshkrdotcom/vllm/blob/v0.3.0/lib/snakebridge_generated/vllm/config/observability_config.ex#L7)

Configuration for observability - metrics and tracing.

# `t`

```elixir
@opaque t()
```

# `_validate_collect_detailed_traces`

```elixir
@spec _validate_collect_detailed_traces(SnakeBridge.Ref.t(), term(), keyword()) ::
  {:ok, term()} | {:error, Snakepit.Error.t()}
```

Handle the legacy case where users might provide a comma-separated

string instead of a list of strings.

## Parameters

- `value` (term())

## Returns

- `term()`

# `_validate_otlp_traces_endpoint`

```elixir
@spec _validate_otlp_traces_endpoint(SnakeBridge.Ref.t(), term(), keyword()) ::
  {:ok, term()} | {:error, Snakepit.Error.t()}
```

Python method `ObservabilityConfig._validate_otlp_traces_endpoint`.

## Parameters

- `value` (term())

## Returns

- `term()`

# `_validate_show_hidden_metrics_for_version`

```elixir
@spec _validate_show_hidden_metrics_for_version(
  SnakeBridge.Ref.t(),
  term(),
  keyword()
) ::
  {:ok, term()} | {:error, Snakepit.Error.t()}
```

Python method `ObservabilityConfig._validate_show_hidden_metrics_for_version`.

## Parameters

- `value` (term())

## Returns

- `term()`

# `_validate_tracing_config`

```elixir
@spec _validate_tracing_config(
  SnakeBridge.Ref.t(),
  keyword()
) :: {:ok, term()} | {:error, Snakepit.Error.t()}
```

Python method `ObservabilityConfig._validate_tracing_config`.

## Returns

- `term()`

# `collect_detailed_traces`

```elixir
@spec collect_detailed_traces(SnakeBridge.Ref.t()) ::
  {:ok, term()} | {:error, Snakepit.Error.t()}
```

# `collect_model_execute_time`

```elixir
@spec collect_model_execute_time(SnakeBridge.Ref.t()) ::
  {:ok, term()} | {:error, Snakepit.Error.t()}
```

# `collect_model_forward_time`

```elixir
@spec collect_model_forward_time(SnakeBridge.Ref.t()) ::
  {:ok, term()} | {:error, Snakepit.Error.t()}
```

# `compute_hash`

```elixir
@spec compute_hash(
  SnakeBridge.Ref.t(),
  keyword()
) :: {:ok, String.t()} | {:error, Snakepit.Error.t()}
```

WARNING: Whenever a new field is added to this config,

ensure that it is included in the factors list if
it affects the computation graph.

Provide a hash that uniquely identifies all the configs
that affect the structure of the computation
graph from input ids/embeddings to the final hidden states,
excluding anything before input ids/embeddings and after
the final hidden states.

## Returns

- `String.t()`

# `cudagraph_metrics`

```elixir
@spec cudagraph_metrics(SnakeBridge.Ref.t()) ::
  {:ok, term()} | {:error, Snakepit.Error.t()}
```

# `enable_layerwise_nvtx_tracing`

```elixir
@spec enable_layerwise_nvtx_tracing(SnakeBridge.Ref.t()) ::
  {:ok, term()} | {:error, Snakepit.Error.t()}
```

# `enable_logging_iteration_details`

```elixir
@spec enable_logging_iteration_details(SnakeBridge.Ref.t()) ::
  {:ok, term()} | {:error, Snakepit.Error.t()}
```

# `enable_mfu_metrics`

```elixir
@spec enable_mfu_metrics(SnakeBridge.Ref.t()) ::
  {:ok, term()} | {:error, Snakepit.Error.t()}
```

# `enable_mm_processor_stats`

```elixir
@spec enable_mm_processor_stats(SnakeBridge.Ref.t()) ::
  {:ok, term()} | {:error, Snakepit.Error.t()}
```

# `kv_cache_metrics`

```elixir
@spec kv_cache_metrics(SnakeBridge.Ref.t()) ::
  {:ok, term()} | {:error, Snakepit.Error.t()}
```

# `kv_cache_metrics_sample`

```elixir
@spec kv_cache_metrics_sample(SnakeBridge.Ref.t()) ::
  {:ok, term()} | {:error, Snakepit.Error.t()}
```

# `new`

```elixir
@spec new(term(), term(), term(), keyword()) ::
  {:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
```

Constructs `ObservabilityConfig`.

## Parameters

- `dataclass_self__` (term())
- `args` (term())
- `kwargs` (term())

# `otlp_traces_endpoint`

```elixir
@spec otlp_traces_endpoint(SnakeBridge.Ref.t()) ::
  {:ok, term()} | {:error, Snakepit.Error.t()}
```

# `show_hidden_metrics`

```elixir
@spec show_hidden_metrics(SnakeBridge.Ref.t()) ::
  {:ok, term()} | {:error, Snakepit.Error.t()}
```

# `show_hidden_metrics_for_version`

```elixir
@spec show_hidden_metrics_for_version(SnakeBridge.Ref.t()) ::
  {:ok, term()} | {:error, Snakepit.Error.t()}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
