Skip to content

Commit

Permalink
Cleanup telemetry attach callback
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewDryga committed May 14, 2024
1 parent c73ac03 commit 3a31b0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/logger_json/ecto.ex
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ defmodule LoggerJSON.Ecto do
| false
) :: :ok | {:error, :already_exists}
def attach(name, event, level) do
:telemetry.attach(name, event, &LoggerJSON.Ecto.telemetry_logging_handler/4, level)
:telemetry.attach(name, event, &telemetry_logging_handler/4, level)
end

@doc """
Expand Down
2 changes: 1 addition & 1 deletion lib/logger_json/plug.ex
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ defmodule LoggerJSON.Plug do
(`Ecto.Repo` documentation)[https://hexdocs.pm/ecto/Ecto.Repo.html#module-telemetry-events].
"""
def attach(level) do
:telemetry.attach("logger-json", [:phoenix, :endpoint, :stop], &LoggerJSON.Plug.telemetry_logging_handler/4, level)
:telemetry.attach("logger-json", [:phoenix, :endpoint, :stop], &telemetry_logging_handler/4, level)
end

@doc """
Expand Down

0 comments on commit 3a31b0a

Please sign in to comment.