Skip to content

Fixed Slashcommand-Metrics missing subcommands#1434

Open
Zabuzard wants to merge 1 commit intodevelopfrom
bugfix/metrics_slash_subcommand
Open

Fixed Slashcommand-Metrics missing subcommands#1434
Zabuzard wants to merge 1 commit intodevelopfrom
bugfix/metrics_slash_subcommand

Conversation

@Zabuzard
Copy link
Member

The metrics.count("slash-" + ...) code was forgetting about subcommands, such as /help-thread close. It only put the name of the slash command itself into the events, e.g. /help-thread.

This PR fixes the problem.

demo

@Zabuzard Zabuzard self-assigned this Mar 11, 2026
@Zabuzard Zabuzard requested a review from a team as a code owner March 11, 2026 12:19
@sonarqubecloud
Copy link

Copy link
Contributor

@firasrg firasrg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for pointing this out. I wasn’t aware of subcommands, and this fix should take them into account i guess

@Zabuzard Zabuzard added bug Something isn't working priority: major labels Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working priority: major

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants