Skip to content

fix(telemetry): a command span sets no process.command_line, which the conventions give to the full command line #2059

Closed

Description

@dan-petty

Problem

The tracer's _ATTRIBUTE_NORMALIZATION maps cli.command to process.command_line on command spans. So process.command_line holds only the command name. OpenTelemetry's semantic conventions give process.command_line to the full command line, so a backend or a dashboard that reads it gets the wrong meaning. No argument value goes there.

Found while #2025 was built.

Proposed fix

Remove the alias, and keep the command name in cli.command and the command path in cli.command_path. Check that no dashboard or query reads process.command_line for command spans.

Acceptance criteria

  • A test shows that a command span has no process.command_line attribute.

Activity

  1. added
    type/bug
    scope/telemetry
    on Oct 24, 2026
  2. added 2 commits that reference this issue on Oct 24, 2026
    a9835d1
    0a2d42e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope/telemetrytype/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions