aspire otel command
aspire otel - View OpenTelemetry data (logs, spans, traces) from a running apphost.
Synopsis
Section titled “Synopsis”aspire otel [command] [options]Description
Section titled “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, so an AppHost must be running with the Dashboard enabled.
Options
Section titled “Options”The following options are available:
-
-?, -h, --helpPrints help and usage documentation for the available commands and options.
-
-l, --log-level <Critical|Debug|Error|Information|None|Trace|Warning>Set the minimum log level for console output. Use this option to increase diagnostics while troubleshooting or reduce output in scripted runs.
-
--non-interactiveRun the command in non-interactive mode, disabling all interactive prompts and spinners.
-
--nologoSuppress the startup banner and telemetry notice.
-
--bannerDisplay the animated Aspire CLI welcome banner.
-
--wait-for-debuggerWait for a debugger to attach before running a command.
Commands
Section titled “Commands”The following commands are available:
| Command | Function |
|---|---|
aspire otel logs | View structured logs from the Dashboard telemetry API. |
aspire otel spans | View spans from the Dashboard telemetry API. |
aspire otel traces | View traces from the Dashboard telemetry API. |