Sha256: 4120ccef957be06da90681fc38d9c1029004433e1b68b3208430402982995a77

Contents?: true

Size: 620 Bytes

Versions: 7

Compression:

Stored size: 620 Bytes

Contents

# encoding: utf-8
require 'ting_yun/instrumentation/middleware_proxy'

module TingYun
  class AgentMiddleware

    include TingYun::Instrumentation::MiddlewareTracing

    attr_reader :transaction_options, :category, :target

    def initialize(app)
      @app = app
      @category = :middleware
      @target   = self
      @transaction_options = {
          :transaction_name => build_transaction_name
      }
    end

    def build_transaction_name
      prefix = ::TingYun::Instrumentation::Support::TransactionNamer.prefix_for_category(nil, @category)
      "#{prefix}#{self.class.name}/call"
    end



  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tingyun_rpm-1.6.1 lib/ting_yun/middleware/agent_middleware.rb
tingyun_rpm-1.5.0 lib/ting_yun/middleware/agent_middleware.rb
tingyun_rpm-1.4.2 lib/ting_yun/middleware/agent_middleware.rb
tingyun_rpm-1.4.1 lib/ting_yun/middleware/agent_middleware.rb
tingyun_rpm-1.3.1 lib/ting_yun/middleware/agent_middleware.rb
tingyun_rpm-1.3.0 lib/ting_yun/middleware/agent_middleware.rb
tingyun_rpm-1.2.0 lib/ting_yun/middleware/agent_middleware.rb