Current section

Files

Jump to
combo_new templates combo_lite lib telemetry phoenix.ex
Raw

templates/combo_lite/lib/telemetry/phoenix.ex

defmodule ComboLite.Telemetry.Phoenix do
@moduledoc false
use CozyTelemetry.Spec
@impl CozyTelemetry.Spec
def metrics(_meta) do
[
summary("phoenix.endpoint.start.system_time",
unit: {:native, :millisecond}
),
summary("phoenix.endpoint.stop.duration",
unit: {:native, :millisecond}
),
summary("phoenix.router_dispatch.start.system_time",
tags: [:route],
unit: {:native, :millisecond}
),
summary("phoenix.router_dispatch.exception.duration",
tags: [:route],
unit: {:native, :millisecond}
),
summary("phoenix.router_dispatch.stop.duration",
tags: [:route],
unit: {:native, :millisecond}
),
summary("phoenix.socket_connected.duration",
unit: {:native, :millisecond}
),
summary("phoenix.channel_joined.duration",
unit: {:native, :millisecond}
),
summary("phoenix.channel_handled_in.duration",
tags: [:event],
unit: {:native, :millisecond}
)
]
end
end