Skip to content

Conversation

@nallwhy
Copy link
Contributor

@nallwhy nallwhy commented Dec 6, 2021

This PR fixes the warning from telemetry below.

Function passed as a handler with ID {TelemetryMetricsAppsignal, [:worker], #PID<0.1478.0>} is local function.
This mean that it is either anonymous function or capture of function without module specified. That may cause performance penalty when calling such handler. For more details see note in `telemetry:attach/4` documentation.

https://hexdocs.pm/telemetry/telemetry.html#attach-4

@kamilkowalski
Copy link
Member

Great catch @nallwhy! 👏

@kamilkowalski kamilkowalski merged commit 5235c48 into surgeventures:main Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants