# aspire otel command

## Name

`aspire otel` - View OpenTelemetry data (logs, spans, traces) from a running apphost.

## Synopsis

```bash title="Aspire CLI"
aspire otel [command] [options]
```

## Description

The `aspire otel` command provides subcommands for viewing OpenTelemetry data collected by the Aspire Dashboard from a running AppHost. You can view structured logs, distributed trace spans, and trace summaries directly from the terminal.

The data is retrieved from the Dashboard's telemetry API. By default, the subcommands discover a running AppHost and connect automatically. You can also use `--dashboard-url` to connect to a standalone dashboard directly — paste the full login URL (for example, `http://localhost:18888/login?t=<token>`) and the browser token is automatically exchanged for an API key.

## Options

The following options are available:

- <Include relativePath="reference/cli/includes/option-help.md" />

- <Include relativePath="reference/cli/includes/option-log-level.md" />

- <Include relativePath="reference/cli/includes/option-non-interactive.md" />

- <Include relativePath="reference/cli/includes/option-nologo.md" />

- <Include relativePath="reference/cli/includes/option-banner.md" />

- <Include relativePath="reference/cli/includes/option-wait.md" />

## Commands

The following commands are available:

| Command                                        | Function                                               |
| ---------------------------------------------- | ------------------------------------------------------ |
| [`aspire otel logs`](../aspire-otel-logs/)     | View structured logs from the Dashboard telemetry API. |
| [`aspire otel spans`](../aspire-otel-spans/)   | View spans from the Dashboard telemetry API.           |
| [`aspire otel traces`](../aspire-otel-traces/) | View traces from the Dashboard telemetry API.          |

## See also

- [aspire otel logs command](../aspire-otel-logs/)
- [aspire otel spans command](../aspire-otel-spans/)
- [aspire otel traces command](../aspire-otel-traces/)