Skip to content

Conversation

@leo108
Copy link
Contributor

@leo108 leo108 commented Jul 30, 2019

Fixes #257

@leo108
Copy link
Contributor Author

leo108 commented Aug 27, 2019

@stayallive any feedback on the PR?

@leo108
Copy link
Contributor Author

leo108 commented Oct 24, 2019

@stayallive Is there any chance to look at this PR?

@stayallive
Copy link
Collaborator

Yeah I'm really sorry for ignoring you for this long.

I don't think this is the way to go, since this does not allow us (or Laravel) to ever make changes in the event names/types we want to watch for an operation.

There are also quite some other cases where right now it's needed that the EventHandler is registered no matter what since otherwise events when running a queue worker might never be sent.

How about we do something like you requested in your original request. Just allow for disabling the query breadcrumbs?

We already have:

    'breadcrumbs' => [
        // Capture bindings on SQL queries logged in breadcrumbs
        'sql_bindings' => true,
    ],

What about adding an option like for example:

    'breadcrumbs' => [
        // Log SQL queries as breadcrumbs
        'queries' => true,

        // Capture bindings on SQL queries logged in breadcrumbs
        'sql_bindings' => true,
    ],

This way we could keep adding options to disable built-in breadcrumb features without having to have a defined list of events in the user config.

@leo108
Copy link
Contributor Author

leo108 commented Oct 24, 2019

@stayallive Thanks for the feedback, I'll check and update my PR.

@stayallive stayallive changed the title #257 Make watched Laravel events configurable. Make watched Laravel events configurable. Oct 24, 2019
@stayallive
Copy link
Collaborator

Many thanks for taking the time to do that!

@leo108 leo108 force-pushed the master branch 3 times, most recently from ec21d1c to c6adca5 Compare October 25, 2019 10:26
@leo108
Copy link
Contributor Author

leo108 commented Oct 25, 2019

@stayallive Please check again, thanks.

@stayallive stayallive requested a review from HazAT October 28, 2019 09:04
@leo108
Copy link
Contributor Author

leo108 commented Nov 4, 2019

@HazAT Can you check this PR? thanks.

@leo108 leo108 changed the title Make watched Laravel events configurable. Add more options to breadcrumbs configruation Nov 4, 2019
@nauxliu
Copy link

nauxliu commented Nov 4, 2019

I would love to see this merged. How can we move forward on this PR?

@stayallive
Copy link
Collaborator

@nauxliu: @HazAT was just pinged a few short hours ago to leave his review, after he is done and there are no more "problems" found it should al go pretty quick.

It's being worked on!

Thank you (both) for your patience.

Copy link
Member

@HazAT HazAT left a comment

Choose a reason for hiding this comment

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

leo108 added a commit to leo108/sentry-docs that referenced this pull request Nov 6, 2019
@nauxliu
Copy link

nauxliu commented Nov 6, 2019

Great! looks we are making a progress, Thank you all @leo108 @stayallive @HazAT

Copy link
Collaborator

@stayallive stayallive left a comment

Choose a reason for hiding this comment

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

Thanks again for your patience and working on this 👍

@stayallive stayallive changed the title Add more options to breadcrumbs configruation Add more options to breadcrumbs configuration Nov 7, 2019
@stayallive stayallive merged commit 50f89a7 into getsentry:master Nov 7, 2019
HazAT pushed a commit to getsentry/sentry-docs that referenced this pull request Nov 8, 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.

Options to disable SQL and log breadcrumb

4 participants