Skip to content

Fixed Slashcommand-Metrics missing subcommands - #1434

Merged
Zabuzard merged 1 commit into
developfrom
bugfix/metrics_slash_subcommand
Mar 12, 2026
Merged

Fixed Slashcommand-Metrics missing subcommands#1434
Zabuzard merged 1 commit into
developfrom
bugfix/metrics_slash_subcommand

Conversation

@Zabuzard

Copy link
Copy Markdown
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

@ZabuzardZabuzard self-assigned this Mar 11, 2026
@Zabuzard
Zabuzard requested a review from a team as a code ownerMarch 11, 2026 12:19
@sonarqubecloud

Copy link
Copy Markdown

@firasrgfirasrg left a comment

Copy link
Copy Markdown
Contributor

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

@ZabuzardZabuzard added bug Something isn't working priority: major labels Mar 11, 2026
@Zabuzard
Zabuzard merged commit 5d819b3 into developMar 12, 2026
11 checks passed
@Zabuzard
Zabuzard deleted the bugfix/metrics_slash_subcommand branch March 12, 2026 10:12
@ZabuzardZabuzard mentioned this pull request Mar 13, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugSomething isn't workingpriority: major

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@Zabuzard@marko-radosavljevic@firasrg