Skip to content
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

Gate performance spans and/or breadcrumbs #626

Open
stayallive opened this issue Dec 14, 2022 · 0 comments
Open

Gate performance spans and/or breadcrumbs #626

stayallive opened this issue Dec 14, 2022 · 0 comments

Comments

@stayallive
Copy link
Collaborator

The Laravel gates feature allow us to define callbacks with Gate::before and Gate::after, we could use this to create a span for the gate check (since gates might execute queries) and add breadcrumbs that a gate authorization has taken place. This could be interesting data to see back in the performance traces and make it easier to find where queries are coming from + the breadcrumbs might be interesting too especially if we can add some information on what gate and gate method was called and mabe even what the result was.

@stayallive stayallive changed the title Gate spans and/or breadcrumbs Gate performance spans and/or breadcrumbs Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants