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

Per-request partial instrumentation #262

Open
andeewoodward opened this issue Mar 29, 2022 · 1 comment
Open

Per-request partial instrumentation #262

andeewoodward opened this issue Mar 29, 2022 · 1 comment
Labels
enhancement New feature or request nice to have This is a "nice to have" feature - not a critical requirement

Comments

@andeewoodward
Copy link

Is it possible to manually load this package instead of it always autoloading? We would like to prevent it from loading in non-production environments and only load it a percentage of the time in production.

@asgrim
Copy link
Collaborator

asgrim commented Mar 29, 2022

@andeewoodward hey! Great suggestion. Out the box, there's nothing automatic to only enable on %age of requests, but you could simulate that by changing the monitoring enabled environment variable SCOUT_MONITOR flag to true/false per request. If this flag is false, Scout APM will return immediately.

It would be great if this could be baked into the library though, so it's something we could consider for a future release 👍

@asgrim asgrim transferred this issue from scoutapp/scout-apm-laravel Mar 30, 2022
@asgrim asgrim changed the title Manual Loading Per-request partial instrumentation Mar 30, 2022
@asgrim asgrim added enhancement New feature or request nice to have This is a "nice to have" feature - not a critical requirement labels Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request nice to have This is a "nice to have" feature - not a critical requirement
Projects
None yet
Development

No branches or pull requests

2 participants