View Source Mixpanel.Telemetry (Mixpanel API v1.2.0)

The following telemetry spans are emitted by mixpanel_api_ex:

[:mixpanel_api_ex, :client, *]

Represents a Mixpanel API client is ready

This span is started by the following event:

  • [:mixpanel_api_ex, :client, :start]

    Represents the start of the span

    This event contains the following measurements:

    • monotonic_time: The time of this event, in :native units

    This event contains the following metadata:

    • name: The name of the client
    • base_url: The URL which a client instance uses to communicate with the Mixpanel API
    • http_adapter: The HTTP adapter which a client instance uses to send actual requests to the backend

This span is ended by the following event:

  • [:mixpanel_api_ex, :client, :stop]

    Represents the end of the span

    This event contains the following measurements:

    • monotonic_time: The time of this event, in :native units
    • duration: The span duration, in :native units

    This event contains the following metadata:

    • name: The name of the client
    • base_url: The URL which a client instance uses to communicate with the Mixpanel API
    • http_adapter: The HTTP adapter which a client instance uses to send actual requests to the backend

The following events may be emitted within this span:

  • [:mixpanel_api_ex, :client, :send]

    Represents a request sent to the Mixpanel API

    This event contains the following measurements:

    • event: The name of the event that was sent
    • payload_size: The size (in bytes) of the payload has been sent

    This event contains the following metadata:

    • telemetry_span_context: A unique identifier for this span
    • name: The name of the client
  • [:mixpanel_api_ex, :client, :send_error]

    An error occurred while sending a request to the Mixpanel API

    This event contains the following measurements:

    • event: The name of the event that was attempted to send
    • error: A description of the error
    • payload_size: The size (in bytes) of the payload that were attempted to send

    This event contains the following metadata:

    • telemetry_span_context: A unique identifier for this span
    • name: The name of the client

Summary

Types

@type metadata() :: :telemetry.event_metadata()
@type span_name() :: :client
@type t() :: %Mixpanel.Telemetry{
  span_name: span_name(),
  start_metadata: metadata(),
  start_time: integer(),
  telemetry_span_context: reference()
}