Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Telemetry 1.x warning caused by local function capture #9

Merged
merged 1 commit into from
Dec 6, 2021

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