-
Notifications
You must be signed in to change notification settings - Fork 373
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
Add sucker_punch
integration
#194
Conversation
98915e3
to
5c8cad1
Compare
43404e3
to
d238432
Compare
d238432
to
8ee8e81
Compare
pin.tracer.provider.context = Datadog::Context.new | ||
|
||
__with_instrumentation do |span| | ||
span.resource = "#{self} [process]" |
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.
We may change that one as PROCESS LogJob
def __with_instrumentation | ||
pin = Datadog::Pin.get_from(::SuckerPunch) | ||
|
||
::SuckerPunch.datadog_pin.tracer.trace(pin.service) do |span| |
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.
it would be great having something like:
sucker_punch.perform_async
sucker_punch.run_perform
sucker_punch.perform_in
assert_equal('sucker_punch', span.name) | ||
assert_equal('DummyWorker [process]', span.resource) | ||
assert_equal('DummyWorker', span.get_tag('sucker_punch.queue')) | ||
assert_equal(Ext::Errors::STATUS, span.status) |
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.
we may check the message and the exception class here
8ee8e81
to
8e69ec4
Compare
8e69ec4
to
c705bed
Compare
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.
Nice! We'll improve this integration later if we need to add more metadata! Thank you!
Overview
The sucker_punch integration traces all scheduled jobs: