Skip to content

Commit

Permalink
Sync with Phoenix 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
reachfh committed Feb 12, 2024
1 parent b17a274 commit 150688f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lib/absinthe_federation_example_web/telemetry.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,34 @@ defmodule AbsintheFederationExampleWeb.Telemetry do
def metrics do
[
# Phoenix Metrics
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}
),

# Database Metrics
summary("absinthe_federation_example.repo.query.total_time",
Expand Down

0 comments on commit 150688f

Please sign in to comment.