module Pantomath

Constants

VERSION

Public Class Methods

active_scope() click to toggle source
# File lib/pantomath.rb, line 25
def self.active_scope
  tracer.scope_manager.active
end
active_span() click to toggle source
# File lib/pantomath.rb, line 29
def self.active_span
  tracer.active_span
end
configuration() click to toggle source
# File lib/pantomath.rb, line 9
def self.configuration
  @configuration ||= Configuration.new
end
configure(&block) click to toggle source
# File lib/pantomath.rb, line 13
def self.configure(&block)
  block.call(configuration)
end
extract(format, carrier) click to toggle source
# File lib/pantomath.rb, line 33
def self.extract(format, carrier)
  tracer.extract(format, carrier)
end
inject(format, carrier) click to toggle source
# File lib/pantomath.rb, line 37
def self.inject(format, carrier)
  return unless active_span

  tracer.inject(active_span.context, format, carrier)
end
tracer() click to toggle source
# File lib/pantomath.rb, line 17
def self.tracer
  @tracer ||= Jaeger::Client.build(
    host: configuration.agent_host,
    port: configuration.agent_port,
    service_name: configuration.service_name
  )
end