Closed dotysan closed 1 year ago
- Where would this information show in the error page?
It would appear in the session block on the error page, along with the other session data.
So far, I've known that we use context to set information such as username.
Yes, the context is the place for this kind of info. This is what we do with the Ruby client:
Following @stympy's advice, I think we should go for this solution #156. What do you think @dotysan?
@subzero10 do you know if there is a user ID attribute available? It would be good to add user_id
to the context, since that's one of the special keys we use for advanced features:
@joshuap we also added username as one of those special keys (in addition to user_id and user_email) to Honeybadger's processing, as a result of this change 😉
do you know if there is a user ID attribute available?
@joshuap I couldn't find anything official but I can read from SO that people can get a user id from the User object. I added it!
I jus got a backtrace in Django with 0.20.1 and it is missing the user name again. :-(
@subzero10 @Kelvin4664 can you take a look at this?
Yes, I've made a note to try and reproduce in the coming days.
Hey @dotysan, thanks for reporting the issue! I've found the problem and submitted #176.
@dotysan, I just published 0.20.2
. This version should propertly report user name and id now!
@subzero10 Thx! I did have honeybadger middleware at the top, but still didn't get the user name.
Will test with 0.20.2 again now.
I did have honeybadger middleware at the top, but still didn't get the user name.
This makes sense, considering the fix we just published. With 0.20.2
, it should work!
Yay!
I'm glad it worked for you this time! And thank you for helping me with the fix :)
Make it easy to track down what user got the error.