ezyt / yii2-atatus-component
Yii2 component for wokt with Atatus
1.0.1
2020-12-09 05:02 UTC
Requires
- php: ^7.0|^8.0
- ezyt/atatus: ^1.0|^2.0
- yiisoft/yii2: 2.0.*@stable
README
For license information check the LICENSE-file.
Installation
php composer.phar require --prefer-dist ezyt/yii2-atatus-component
or add
"ezyt/yii2-atatus-component": "*"
to the require section of your composer.json.
Config
[ 'bootstrap' => [ #... 'atatus' ], 'components' => [ 'atatus' => [ 'class' => \Ezyt\Yii2Atatus\AtatusComponent::class, ], ], ];
Example
#... Yii::$app->atatus->getAgent()->setTransactionName(); #...
Documentation for config.
Param | Default | Description |
---|---|---|
enabled |
true | off component |
ignoreList |
[] | actions for ignore transaction. Example 'controllerName\*' - all actions in ControllerName will be ignored |
webIgnoreList |
[] | ignoreList only for WebApplication. Merges with ignoreList |
cliIgnoreList |
[] | ignoreList only for ConsoleApplication. Merges with ignoreList |
enabledWebHandler |
true | off handler for WebApplication |
enabledCliHandler |
true | off handler for ConsoleApplication |