Telemetry integration for the Anthropic client.
All events are prefixed with [:anthropic].
Events
[:anthropic, :request, :start]— before an API request[:anthropic, :request, :stop]— after a successful API request[:anthropic, :request, :exception]— on request failure[:anthropic, :rate_limited]— when a 429 triggers a retry
Summary
Functions
Executes a point-in-time telemetry event (no start/stop pairing).
Executes a <prefix>:start telemetry event and returns the monotonic start time.
Executes a <prefix>:stop telemetry event, measuring duration since start_time.
Functions
Executes a point-in-time telemetry event (no start/stop pairing).
event is a list of atoms appended to [:anthropic].
Executes a <prefix>:start telemetry event and returns the monotonic start time.
event is a list of atoms appended to [:anthropic] (e.g. [:request]).
meta is the metadata map forwarded to :telemetry.execute/3.
extra_measurements are merged with the :system_time measurement.
Executes a <prefix>:stop telemetry event, measuring duration since start_time.
start_time should be the value returned by start/3.
extra_measurements are merged with the computed :duration.