Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.

Document PHP ignore transaction (and other APIs?) #92

Open
cschneid opened this issue Mar 2, 2020 · 0 comments
Open

Document PHP ignore transaction (and other APIs?) #92

cschneid opened this issue Mar 2, 2020 · 0 comments

Comments

@cschneid
Copy link

cschneid commented Mar 2, 2020

We have a some php apis we've added that haven't made it into the docs yet.

We should make sure they are clear on usage between both Laravel & Symfony. The code snippet below is how to import the Laravel version of the agent into the file. I don't know what the right code for Symfony is.

Ignore

https://github.com/scoutapp/scout-apm-php/blob/master/src/ScoutApmAgent.php#L60

// At top of file somewhere with other imports
use Scoutapm\Laravel\Facades\ScoutApm;
// Later, when you are in a transaction that you want to ignore
ScoutApm::ignore()
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant