-
Notifications
You must be signed in to change notification settings - Fork 0
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
When using tower_error_tracker, ErrorTracker.set_context
doesn't work
#19
Comments
Hey @brainlid, Thanks for the report! Indeed: #20 . It seems this is caused mainly because of the combined effects of ErrorTracker storing the context in the process dictionary, and in I'll try to figure out a way it can be reported anyway... |
Having tower support something like |
Thanks @grzuy! I suspected it might be a cross-process issue. I don't know if this helps, but I've previously copied Logger's internal metadata state (stored in the process) when crossing process boundaries so things like the a Plug assigned |
Yes, we would need some copying of process dictionary values most probably here. The same will be needed, as you say, for when reporting any |
ErrorTracker.set_context
doesn't work
Hi @brainlid, Just released To fix it for web apps using |
For the record, opening issue in |
That fixed it for me! Thanks! |
Elixir: 1.17.2
OTP: 27
In my
mix.exs
file, when I have:and all the config was followed, error are correctly reported through email and ErrorTracker. However, when I use
ErrorTracker.set_context(%{user_id: 123})
, there is zero error context coming through in ErrorTracker. It shows as{}
in the ErrorTracker interface. This is when raised in a LiveView process.When I change the config to:
And I remove the
TowerErrorTracker
reporterconfig :tower, :reporters, [TowerEmail]
, then I get a full set of error context along with custom set_context values.The text was updated successfully, but these errors were encountered: