Bounded :telemetry lifecycle events for Apify API operations.
The client depends only on standard Elixir :telemetry. Applications may
translate these events into traces, metrics, logs, or another observability
backend.
Events
[:apify_client, :request, :start]is emitted before an HTTP request. Measurements contain:system_timeand:count.[:apify_client, :request, :stop]is emitted for successful 2xx responses. Measurements contain:durationin native time units and:count.[:apify_client, :request, :exception]is emitted for API, transport, streaming, cancellation, and unexpected errors. Measurements contain:durationin native time units and:count.
Every event includes a unique opaque :telemetry_ref, plus only bounded
:method and :resource values. :telemetry_ref correlates a lifecycle's
start and completion events and must not be used as a metric label or span
attribute. :resource is restricted to fixed top-level Apify resource names (or
"other"), so identifiers, query parameters, API tokens, arbitrary URLs,
and error messages never become metric labels. Completion events add
:status_code and :outcome; non-successful completions add a bounded
:error_type.
Summary
Types
@type lifecycle() :: %{ completion: :atomics.atomics_ref(), metadata: request_metadata(), start_time: integer() }