Mojito.Telemetry (mojito v0.7.12) View Source

Mojito's Telemetry integration.

All time measurements are emitted in :millisecond units by default. A different Erlang time unit can be chosen by setting a config parameter like so:

config :mojito, Mojito.Telemetry, time_unit: :microsecond

Mojito emits the following Telemetry events:

  • [:mojito, :pool, :start] before launching a pool

    • Measurements: :system_time
    • Metadata: :host, :port
  • [:mojito, :pool, :stop] after launching a pool

    • Measurements: :system_time, :duration
    • Metadata: :host, :port
  • [:mojito, :connect, :start] before connecting to a host

    • Measurements: :system_time
    • Metadata: :host, :port
  • [:mojito, :connect, :stop] after connecting to a host

    • Measurements: :system_time, :duration
    • Metadata: :host, :port
  • [:mojito, :request, :start] before making a request

    • Measurements: :system_time
    • Metadata: :host, :port, :path, :method
  • [:mojito, :request, :stop] after making a request

    • Measurements: :system_time, :duration
    • Metadata: :host, :port, :path, :method