From 85e46322a84c4db52bd0c8ef09c6528d4aa1b981 Mon Sep 17 00:00:00 2001 From: Ilia Borovitinov Date: Mon, 19 Aug 2024 12:44:33 +0300 Subject: [PATCH] chore: expose additional metrics to StatsD (#1531) --- packages/sync-service/lib/electric/telemetry.ex | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/sync-service/lib/electric/telemetry.ex b/packages/sync-service/lib/electric/telemetry.ex index 4a8a47812c..36068fbb62 100644 --- a/packages/sync-service/lib/electric/telemetry.ex +++ b/packages/sync-service/lib/electric/telemetry.ex @@ -53,7 +53,13 @@ defmodule Electric.Telemetry do tags: [:route], unit: {:native, :millisecond} ), - summary("electric.shape_cache.create_snapshot_task.stop", unit: {:native, :millisecond}) + summary("electric.shape_cache.create_snapshot_task.stop.duration", + unit: {:native, :millisecond} + ), + summary("electric.storage.make_new_snapshot.stop.duration", unit: {:native, :millisecond}), + summary("electric.querying.stream_initial_data.stop.duration", + unit: {:native, :millisecond} + ) ] |> Enum.map(&%{&1 | tags: [:instance_id | &1.tags]}) end