You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(telemetry): the profile span holds the command path and the argument count, never the argument values #2058
The telemetry.profile span of devops telemetry profile (_run_profiled_command in src/devops_cli/commands/telemetry.py) stores the profiled command in command.line exactly as the person typed it, with every argument value. A secret given to the profiled command goes to the trace backend. #1996, #2024 and #2025 removed the same data from the command, usage-error and subprocess spans.
Record the command path and the argument count on the profile span, and never the argument values. OpenTelemetry's semantic conventions make process.command_line and process.command_args Opt-In for this reason.
Acceptance criteria
A test profiles a command with a secret-like argument, and no exported attribute holds the value.
Activity
fix(telemetry): a subprocess span holds the executable and the argume…