Method: Datadog::Tracing::Contrib::Rack::MiddlewareNamePatcher.patch_middleware_names

Defined in:
lib/datadog/tracing/contrib/rack/patcher.rb

.patch_middleware_namesObject



37
38
39
40
41
42
43
44
45
# File 'lib/datadog/tracing/contrib/rack/patcher.rb', line 37

def patch_middleware_names
  retain_middleware_name(get_option(:application))
rescue => e
  # We can safely ignore these exceptions since they happen only in the
  # context of middleware patching outside a Rails server process (eg. a
  # process that doesn't serve HTTP requests but has Rails environment
  # loaded such as a Resque master process)
  Datadog.logger.debug("Error patching middleware stack: #{e}")
end