class Pantomath::Instrumentation::NetHTTP::Tracer

Private Instance Methods

span_name() click to toggle source
# File lib/pantomath/instrumentation/net_http/tracer.rb, line 21
def span_name
  "NET/HTTP Call to #{context.http.address}"
end
tags() click to toggle source
# File lib/pantomath/instrumentation/net_http/tracer.rb, line 10
def tags
  {
    "span.kind" => "external/http",
    "span.tracer" => "Pantomath::Tracer::NetHTTP",
    "external.http.request.method" => context.req.method,
    "external.http.request.host" => context.http.address,
    "external.http.request.port" => context.http.port,
    "external.http.request.path" => context.req.path
  }
end