-
Notifications
You must be signed in to change notification settings - Fork 81
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
Agent download failure when using hackney_telemetry #802
Comments
After putting some logging in |
Figured out what the issue is: we have a custom hackney metrics module configured,
When Hackney sends requests, it assumes it can access this telemetry module, but of course this OTP application has not been started on compile time when Appsignal uses hackney. Not sure what the best solution is here, I guess the telemetry module should be temporarily disabled while appsignal is using hackney during compile? For now I patch the appsignal install script like this, which also seems to do the trick:
|
Hey @arjan! 👋 Thanks for letting us know about this. It seems we’re in a loop here indeed, where We could check the hackney configuration and ensure For now, I’ll update the title of this issue so its easier to find for other users running into this. I’m of course open to suggestions for fixing this. |
Maybe before starting hackney, you could unset the
As this is only for the agent downloading during compile time, it should not affect anything else.. |
Thanks for the suggestion @arjan! We may apply the fix you propose, as this has become a common stumbling block for our users. For anyone currently affected by this, the problem is partly a configuration issue: a workaround would be to move the line in your config that enables the metrics ( |
Users may configure Hackney to report metrics to a separate module. However, that module will not be loaded during the installation Mix task, causing Hackney to error. This change unsets the configuration key that defines the module to report metrics to. Fixes #802. Co-authored-by: Arjan Scherpenisse <arjan@scherpenisse.net>
Users may configure Hackney to report metrics to a separate module. However, that module will not be loaded during the installation Mix task, causing Hackney to error. This change unsets the configuration key that defines the module to report metrics to. Fixes #802. Co-authored-by: Arjan Scherpenisse <arjan@scherpenisse.net>
Version 2.4.3 of the AppSignal for Elixir integration has been released, which fixes this issue. |
Describe the bug
Appsignal extension fails to install properly because the
.tar.gz
file with the agent does not download.To Reproduce
Steps to reproduce the behavior:
Found a hackney issue that seems related: benoitc/hackney#689
Elixir / OTP versions:
The text was updated successfully, but these errors were encountered: