Sha256: 15468c3d6c0e9848adcb08b6dcc8fa818970f2a7ac93ceac343fdeed99c0d057
Contents?: true
Size: 401 Bytes
Versions: 4
Compression:
Stored size: 401 Bytes
Contents
module HeimdallApm module Instruments class Middleware def initialize(app) @app = app end def call(env) txn = ::HeimdallApm::TransactionManager.current segment = ::HeimdallApm::Segment.new('Middleware'.freeze, 'all'.freeze) txn.start_segment(segment) @app.call(env) ensure txn.stop_segment end end end end
Version data entries
4 entries across 4 versions & 1 rubygems