-
Notifications
You must be signed in to change notification settings - Fork 600
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove MessageBroker metric for ActiveJob #1811
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a changelog entry for this before we get this merged?
@@ -71,7 +71,7 @@ def self.perform(job, block) | |||
end | |||
|
|||
def self.run_in_trace(job, block, event) | |||
trace_execution_scoped("MessageBroker/#{adapter}/Queue/#{event}/Named/#{job.queue_name}", | |||
trace_execution_scoped("ActiveJob/#{adapter}/Queue/#{event}/Named/#{job.queue_name}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the resulting change:
- MessageBroker/ActiveJob::Inline/Queue/Produce/MyQueueName
+ ActiveJob/ActiveJob::Inline/Queue/Produce/MyQueueName
I'm questioning the double ActiveJob
string appearances. Maybe we should trim the leading ActiveJob::
string off of the adapter:
adapter.sub(/^ActiveJob::/, '')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this! The repetition isn't necessary. I've made this edit - thanks for providing the regex.
spelling fix
SimpleCov Report
|
ActiveJob isn't considered a MessageBroker. This PR cleans up naming and associated tests.
Closes #1151