Skip to content

categorize_command buckets psql (and mysql) as "other" instead of "cloud" in rtk gain #4023

Closed as duplicate

Description

@KuSh

categorize_command in src/core/tracking.rs has no arm for psql, so every rtk psql run is bucketed as "other" in rtk gain's category breakdown rather than "cloud", where docker and kubectl already sit. mysql (added in #3153) inherits the same gap.

"docker" | "kubectl" => "cloud",

There is no psql/mysql arm, and the fallthrough is _ => "other".

Pre-existing — #3153 matches the existing psql behaviour rather than introducing this — so it was left out of that review. The fix is one arm:

"docker" | "kubectl" | "psql" | "mysql" => "cloud",

Worth checking the other src/cmds/cloud/ entry points (aws, curl, wget) against the same list while touching it.

Activity

  1. rtk-wshm-sync-bot commented on Sep 13, 2026

    @rtk-wshm-sync-bot

    wshm · Automated triage by AI

    🔍 Automated Triage

    🐛 Category bug
    🟢 Priority low
    🎯 Confidence 90%

    Summary

    categorize_command has no arm for psql/mysql so they fall into "other" instead of "cloud" in rtk gain's category breakdown; add them to the cloud arm and audit related entry points

    This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.

    📁 Relevant files
    • src/core/tracking.rs

    Triaged automatically by wshm · This is an automated analysis, not a human review.

  2. KuSh commented on Oct 3, 2026

    @KuSh
    CollaboratorAuthor

    Closing in favour of #4428, which covers psql together with the other filtering commands that categorize_command still buckets as "other", and asks for a test so new commands cannot slip through again. mysql is not a command rtk handles today; if it lands, the same fix will cover it. Please follow up on #4428.

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

    area:performancebuggood first issuepriority:low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions