Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Push to the sentry transaction #160

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

Closed
wants to merge 1 commit into from

Conversation

mcfedr
Copy link
Contributor

@mcfedr mcfedr commented Oct 1, 2018

  • At start and end of request, using _route attribute if its set
  • At start and end of commands, using command name

Copy link
Contributor

@Jean85 Jean85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, and thanks for this contribution, it seems pretty interesting!
Unfortunately, largely due to the BCs included, I cannot merge this as it is. I will probably be able to say what's the viable way in a few days..

{
$mockEvent = $this->createMock(ConsoleCommandEvent::class);

$command = new Command();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is making the test fail in --prefer-lowest; need a name.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, just looking at how to do this for Symfony 3

*
* @param FinishRequestEvent $event
*/
public function onFinishRequest(FinishRequestEvent $event): void;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These new methods are a huge breaking change 😞 I don't think I can merge this right now as it is...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is best to do this? I see that currently in the interface it also doesnt have onConsoleCommand, but its in the ExceptionListener, maybe this can also just not be added to the interface?

@mcfedr
Copy link
Contributor Author

mcfedr commented Oct 1, 2018

The transaction value gets a special treatment in Sentry UI,

here users_list is my route name in the title area:

screenshot 2018-10-01 at 5 53 42 pm

it is also show amongst the tags:

screenshot 2018-10-01 at 5 53 48 pm

@mcfedr mcfedr force-pushed the transactions branch 2 times, most recently from 1c23f5e to 8dc2538 Compare October 1, 2018 15:03
- At start and end of request, using _route attribute if its set
- At start and end of commands, using command name
@mcfedr
Copy link
Contributor Author

mcfedr commented Oct 1, 2018

The remaining phpstan issues are caused by getsentry/sentry-php#660

@Jean85 Jean85 changed the base branch from master to releases/2.x January 28, 2019 17:08
@Jean85
Copy link
Contributor

Jean85 commented Jan 28, 2019

I've changed the target branch due to the fact that #184 will start development of 3.0 on the master branch.

Unfortunately there are conflicts that need to be resolved first. Anyhow, I'm planning on using Scopes on 3.0 to push/pop the same stuff.

@Jean85
Copy link
Contributor

Jean85 commented Feb 26, 2019

Just re-implemented the same in #198 for 3.x.

@mcfedr
Copy link
Contributor Author

mcfedr commented Jul 2, 2019

Closing as this is fixed with #198

@mcfedr mcfedr closed this Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants