module Prometheus::Client
Public Class Methods
trace(metric, labels = {}, &block)
click to toggle source
Delegate to the Tracer
.
# File lib/prometheus/client/tracer.rb, line 12 def self.trace(metric, labels = {}, &block) tracer.trace(metric, labels, &block) end
tracer()
click to toggle source
Most people will want to use a global tracer instead of building their own, similar to how most will use the global metrics registry.
# File lib/prometheus/client/tracer.rb, line 7 def self.tracer @tracer ||= Tracer.new end