Class: Sentry::Excon::Middleware
- Inherits:
-
Excon::Middleware::Base
- Object
- Excon::Middleware::Base
- Sentry::Excon::Middleware
- Defined in:
- lib/sentry/excon/middleware.rb
Instance Method Summary collapse
-
#initialize(stack) ⇒ Middleware
constructor
A new instance of Middleware.
- #request_call(datum) ⇒ Object
- #response_call(datum) ⇒ Object
Constructor Details
#initialize(stack) ⇒ Middleware
Returns a new instance of Middleware.
8 9 10 11 |
# File 'lib/sentry/excon/middleware.rb', line 8 def initialize(stack) super @instrumenter = Instrumenter.new end |
Instance Method Details
#request_call(datum) ⇒ Object
13 14 15 16 |
# File 'lib/sentry/excon/middleware.rb', line 13 def request_call(datum) @instrumenter.start_transaction(datum) @stack.request_call(datum) end |
#response_call(datum) ⇒ Object
18 19 20 21 |
# File 'lib/sentry/excon/middleware.rb', line 18 def response_call(datum) @instrumenter.finish_transaction(datum) @stack.response_call(datum) end |