O11y.RecordDefinitions (O11y v0.2.10)
This is a convenience module for defining the records from the OpenTelemetry Erlang library.
Pull it in and use it like:
defmodule SomeTest do
use ExUnit.Case, async: true
use O11y.RecordDefinitions
test "building spans for some reason" do
span_record = span(name: "do it!", trace_id: 123, span_id: 456)
dbg(span_record)
end
end