Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use command name instead of display name in datadog metric #11165

Merged
merged 5 commits into from Apr 24, 2024

Conversation

notbakaneko
Copy link
Collaborator

@notbakaneko notbakaneko commented Apr 17, 2024

resolveName() uses displayName which isn't the best for datadog 馃憖
(displayName defaults to the same value as commandName if not specified)

resolveName() calls payload(), so the data gets json_decoded again, anyway.
@@ -64,7 +64,7 @@ public function boot()
$GLOBALS['cfg']['datadog-helper']['prefix_web'].'.queue.run',
1,
[
'job' => $event->job->resolveName(),
'job' => $event->job->payload()['data']['commandName'],
Copy link
Collaborator

Choose a reason for hiding this comment

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

can use a test to avoid getting trolled by laravel

@nanaya nanaya enabled auto-merge April 24, 2024 09:15
@nanaya nanaya merged commit aa9ef6d into ppy:master Apr 24, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants