> ## Documentation Index
> Fetch the complete documentation index at: https://resq-dependabot-github-actions-github-actions-478e18be3d.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Telemetry

<a id="resq_mcp.telemetry" />

# resq\_mcp.telemetry

Telemetry setup for the ResQ MCP server.

Provides initialization hooks for OpenTelemetry tracing and metrics.
Currently operates in no-op mode with structured logging as a fallback.

Future integration path:

1. Install: opentelemetry-api, opentelemetry-sdk, opentelemetry-exporter-otlp
2. Configure TracerProvider with appropriate exporters
3. Configure MeterProvider for Prometheus metrics
4. Add trace decorators to key operations

<a id="resq_mcp.telemetry.annotations" />

## annotations

<a id="resq_mcp.telemetry.logging" />

## logging

<a id="resq_mcp.telemetry.TYPE_CHECKING" />

## TYPE\_CHECKING

<a id="resq_mcp.telemetry.settings" />

## settings

<a id="resq_mcp.telemetry.logger" />

#### logger

<a id="resq_mcp.telemetry.setup_telemetry" />

#### setup\_telemetry

```python theme={null}
def setup_telemetry() -> None
```

Initialize OpenTelemetry tracing and metrics.

Currently operates in no-op mode. When DEBUG is enabled, logs the
initialization for visibility.

<a id="resq_mcp.telemetry.trace" />

#### trace

```python theme={null}
def trace(name: str | None = None) -> Callable[[F], F]
```

Decorator stub for tracing function execution.

**Arguments**:

* `name` - Optional span name. Defaults to the function name.

**Returns**:

A no-op decorator that returns the original function.

**Example**:

@trace("custom.operation.name")
def my\_function():
...
