Module: Pigeon::API::TracingAPI

Included in:
Pigeon
Defined in:
lib/pigeon/api.rb

Overview

Delegate methods to TraceAPI module

Instance Method Summary collapse

Instance Method Details

#init_tracing(service_name: "pigeon", exporter: nil) ⇒ Object



183
184
185
# File 'lib/pigeon/api.rb', line 183

def init_tracing(service_name: "pigeon", exporter: nil)
  TraceAPI.init_tracing(service_name: service_name, exporter: exporter)
end

#tracer(name = "pigeon") ⇒ Object



191
192
193
# File 'lib/pigeon/api.rb', line 191

def tracer(name = "pigeon")
  TraceAPI.tracer(name)
end

#tracing_available?Boolean

Returns:

  • (Boolean)


187
188
189
# File 'lib/pigeon/api.rb', line 187

def tracing_available?
  TraceAPI.tracing_available?
end

#with_span(name, attributes: {}, kind: :internal) ⇒ Object



195
196
197
# File 'lib/pigeon/api.rb', line 195

def with_span(name, attributes: {}, kind: :internal, &)
  TraceAPI.with_span(name, attributes: attributes, kind: kind, &)
end