इसे छोड़कर कंटेंट पर जाएं
Docs Try Aspire
Docs Try

aspire otel command

यह कंटेंट अभी तक आपकी भाषा में उपलब्ध नहीं है।

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

Aspire CLI
aspire otel [command] [options]

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.

The following options are available:

  • -?, -h, --help

    Prints 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-interactive

    Run the command in non-interactive mode, disabling all interactive prompts and spinners.

  • --nologo

    Suppress the startup banner and telemetry notice.

  • --banner

    Display the animated Aspire CLI welcome banner.

  • --wait-for-debugger

    Wait for a debugger to attach before running a command.

The following commands are available:

CommandFunction
aspire otel logsView structured logs from the Dashboard telemetry API.
aspire otel spansView spans from the Dashboard telemetry API.
aspire otel tracesView traces from the Dashboard telemetry API.