Current section
Files
Jump to
Current section
Files
templates/saas/lib/core/telemetry.ex
defmodule DemoLT.Core.Telemetry do
@moduledoc false
use CozyTelemetry.Spec
@impl CozyTelemetry.Spec
def metrics(_meta) do
[
summary("combo_lt.core.repo.query.total_time",
unit: {:native, :millisecond},
description: "The sum of the other measurements"
),
summary("combo_lt.core.repo.query.decode_time",
unit: {:native, :millisecond},
description: "The time spent decoding the data received from the database"
),
summary("combo_lt.core.repo.query.query_time",
unit: {:native, :millisecond},
description: "The time spent executing the query"
),
summary("combo_lt.core.repo.query.queue_time",
unit: {:native, :millisecond},
description: "The time spent waiting for a database connection"
),
summary("combo_lt.core.repo.query.idle_time",
unit: {:native, :millisecond},
description:
"The time the connection spent waiting before being checked out for the query"
)
]
end
end