Module: Foam::Otel::Vendor::Rollbar
- Defined in:
- lib/foam/otel/vendor/rollbar.rb
Overview
Error-tracker coexistence (contract SPEC.md section 12): the bridge
direction is tracker -> foam only. When the app notifies Rollbar of an
exception (e.g. inside a rescue_from handler foam's middleware never
sees), the exception is also recorded on the active foam span — then
Rollbar proceeds exactly as before (side-effect-free observation:
arguments, result, and raise behavior untouched). Installed by
presence detection at init(); opt out with rollbar: false. The
shared Errors registry guarantees one exception event per span even
when Rollbar's own middleware AND foam's middleware see the same raise.
Defined Under Namespace
Modules: Hook
Class Method Summary collapse
Class Method Details
.install! ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/foam/otel/vendor/rollbar.rb', line 20 def install! return false unless defined?(::Rollbar) return false if @installed ::Rollbar.singleton_class.prepend(Hook) @installed = true true end |