View Source TelemetryEmitter.CaptureReporter (TelemetryEmitter v0.1.0)
A reporter captures measurements in process state. This is useful for testing but nothing else.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Return metrics recorded under the given metric
.
Initialize the reporter with a list of metrics. Create metrics
using
Telemetry.Metrics
.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Return metrics recorded under the given metric
.
Emitter.increment("service.request.count")
assert %{measurement: %{count: 1}, tags: %{}, unit: :unit} =
CaptureReporter.recorded(pid, "service.request")
Initialize the reporter with a list of metrics. Create metrics
using
Telemetry.Metrics
.
{:ok, pid} = TelemetryEmitter.CaptureReporter.start_link(metrics: metrics)