OpenTelemetry API v0.5.0 OpenTelemetry.Meter

require OpenTelemetry.ValueRecorder
require OpenTelemetry.Counter
require OpenTelemetry.Meter

OpenTelemetry.register_application_meter(Your.Application)

OpenTelemetry.Meter.new_instruments([OpenTelemetry.ValueRecorder.instrument("some.latency"),
                                     OpenTelemetry.Counter.instrument("some.counter")])

# use the new instrument by name
OpenTelemetry.Counter.add("some.counter", 1)

# or use a bound instrument
bound = OpenTelemetry.Meter.bind("some.latency", [])
# measure time spent on some function and then record it
OpenTelemetry.ValueRecorder.record(bound, time)

Link to this section Summary

Link to this section Functions

Link to this macro

bind(name, label_set)

(macro)
Link to this macro

new_instruments(list)

(macro)
Link to this macro

record(bound_instrument, number)

(macro)
Link to this macro

record(name, number, label_set)

(macro)
Link to this macro

record_batch(label_set, measurements)

(macro)
Link to this macro

release(bound_instrument)

(macro)