Module: Skylight::Probes::ActionDispatch::ShowExceptions::Instrumentation Private
- Defined in:
- lib/skylight/probes/action_dispatch/show_exceptions.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #initialize ⇒ Object private
Instance Method Details
#initialize ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/skylight/probes/action_dispatch/show_exceptions.rb', line 8 def initialize(...) super exceptions_app = @exceptions_app @exceptions_app = lambda do |env| Skylight.instrumenter&.current_trace&.segment = "error" Skylight.mute(ignore: :endpoint_assignment) { exceptions_app.call(env) } end end |