class Pantomath::Instrumentation::ActionController::Tracer

Private Instance Methods

span_name() click to toggle source
# File lib/pantomath/instrumentation/action_controller/tracer.rb, line 22
def span_name
  "#{context.request.method} #{context.request.path}"
end
status() click to toggle source
# File lib/pantomath/instrumentation/action_controller/tracer.rb, line 30
def status
  ["http.response.status_code", context.status]
end
tags() click to toggle source
# File lib/pantomath/instrumentation/action_controller/tracer.rb, line 10
def tags
  {
    "span.kind" => "web",
    "span.tracer" => "Pantomath::Tracer::ActionController",
    "http.request.method" => context.request.method,
    "http.request.url" => context.request.original_url,
    "http.request.path" => context.request.path,
    "action_controller.controller_name" => context.controller_name,
    "action_controller.action_name" => context.action_name
  }
end
tracer_context() click to toggle source
# File lib/pantomath/instrumentation/action_controller/tracer.rb, line 26
def tracer_context
  Pantomath.extract(OpenTracing::FORMAT_RACK, context.request.env)
end