From 150688f06c57d6068e83488f2ecebb4a2d370044 Mon Sep 17 00:00:00 2001 From: Jake Morrison Date: Sun, 11 Feb 2024 21:41:13 -0600 Subject: [PATCH] Sync with Phoenix 1.7 --- .../telemetry.ex | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/lib/absinthe_federation_example_web/telemetry.ex b/lib/absinthe_federation_example_web/telemetry.ex index c3b9f5e..44e2564 100644 --- a/lib/absinthe_federation_example_web/telemetry.ex +++ b/lib/absinthe_federation_example_web/telemetry.ex @@ -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",