class Pantomath::Instrumentation::HTTParty::Tracer

Private Instance Methods

span_name() click to toggle source
# File lib/pantomath/instrumentation/httparty/tracer.rb, line 20
def span_name
  "NET/HTTP Call to #{context.uri.host}"
end
tags() click to toggle source
# File lib/pantomath/instrumentation/httparty/tracer.rb, line 10
def tags
  {
    "span.kind" => "external/http",
    "span.tracer" => "Pantomath::Tracer::HTTParty",
    "external.http.request.method" => context.http_method::METHOD,
    "external.http.request.host" => context.uri.host,
    "external.http.request.path" => context.uri.path
  }
end