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
ExceptionListener > Add route
tag
#167
Conversation
I'm kinda conflicted on this change. On one hand, I understand how that's useful, but OTOH I think we are deviating from the correct behavior here, since we could use the This would change how the errors are logged though... |
Can you point me in the right direct where I could add this |
From what I can recall, as in https://github.com/getsentry/sentry-php/blob/58172bda837d78de77d6b497f7d372dc2d879115/test/Raven/Tests/ClientTest.php#L822 You can do |
I'm not sure if I should make any changes I found that $this->transaction = new Raven_TransactionStack();
if (static::is_http_request() && isset($_SERVER['PATH_INFO'])) {
// @codeCoverageIgnoreStart
$this->transaction->push($_SERVER['PATH_INFO']);
// @codeCoverageIgnoreEnd
} That means that transactions are already working by default? |
The issue that this PR tries to solve, is that as a developer, it really helps to not only know the URL (which is useful) but also know the route name of the url. It's way easier to copy and paste the route name into your IDE and search for the controller than by looking at the url and trying to match the route in the code. |
I'm not sure why Scrutinizer is failing btw, it says:
But it doesn't say what is wrong. I ran |
The conding style on Scrutinizer may be wrong, it's already checked on Travis, it should be disabled... Who has permission to do that? @mitsuhiko? @dcramer? |
Any news @Jean85 ? |
I do not have permissions on Scrutinizer to fix that. You should add tests to this PR, though. |
|
@Jean85 I updated the PR and added the tests. |
CI is failing due to CS, please fix it; it can be done automatically with |
Thanks for giving me the command :) Made it super easy to fix! |
This will make it easier to find which controller / route was executed when an exception occurred.