Skip to content

Commit 9c8420d

Browse files
committed
uncomment :telemetry
1 parent 9525db7 commit 9c8420d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/pool.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ defmodule SQL.Pool do
2222
{n, workers} = Map.get(schedulers, scheduler_id)
2323
case checkout(state, n, workers) do
2424
:none=error ->
25-
:telemetry.execute([:sql, :checkout], %{pool: pool, duration: System.monotonic_time()-start_time}, %{id: id})
25+
# :telemetry.execute([:sql, :checkout], %{pool: pool, duration: System.monotonic_time()-start_time}, %{id: id})
2626
error
2727
{idx, _load} ->
2828
case :atomics.compare_exchange(connections, idx, 0, 1) do
2929
:ok ->
3030
:counters.add(activations, idx, 1)
3131
:counters.add(recent_activations, idx, 1)
3232
result = {idx, elem(sockets, idx-1)}
33-
:telemetry.execute([:sql, :checkout], %{pool: pool, duration: System.monotonic_time()-start_time}, %{id: id})
33+
# :telemetry.execute([:sql, :checkout], %{pool: pool, duration: System.monotonic_time()-start_time}, %{id: id})
3434
result
3535
_ ->
3636
checkout(sql, pool)

0 commit comments

Comments
 (0)