lib/ddtrace/contrib/sucker_punch/patcher.rb in ddtrace-0.11.0.beta2 vs lib/ddtrace/contrib/sucker_punch/patcher.rb in ddtrace-0.11.0

- old
+ new

@@ -22,11 +22,10 @@ require_relative 'instrumentation' add_pin! ExceptionHandler.patch! Instrumentation.patch! - Datadog.tracer.set_service_info(get_option(:service_name), 'sucker_punch', Ext::AppTypes::WORKER) @patched = true rescue => e Datadog::Tracer.log.error("Unable to apply SuckerPunch integration: #{e}") @patched @@ -41,10 +40,10 @@ Gem::Version.new(::SuckerPunch::VERSION) >= COMPATIBLE_WITH end def add_pin! - Pin.new(get_option(:service_name), app_type: Ext::AppTypes::WORKER).tap do |pin| + Pin.new(get_option(:service_name), app: 'sucker_punch', app_type: Ext::AppTypes::WORKER).tap do |pin| pin.onto(::SuckerPunch) end end private_class_method :compatible?, :add_pin!