Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
SentryContext class (App/Http/Middleware)
Kernel class (App/Http)
Where is the problem? Currently I cannot upgrade Laravel or Sentry's vendor.
This should work correctly AFAIK, however depending on where the request fails it may never have reached the middleware causing the info not to be added.
For example (if I remember correctly) when a route fails because the class does not exists middleware have not been executed yet because the error occurred before the route was resolved.
You could try and see if a request even makes it to the middleware (locally) to make sure it executes when your error occurs.
The next best thing would be to set the tags and other context just before the error is passed to sentry in the
I don't think upgrading Sentry would help you here, since the feature is so basic there is no reason it shouldn't work so I think the exceptions occur before middleware ar even executed.