spacespell / elastic-apm-bundle
Elastic APM Bundle
Installs: 3 599
Dependents: 0
Suggesters: 0
Security: 0
Stars: 100
Watchers: 2
Forks: 3
Open Issues: 0
Type:symfony-bundle
Requires
- philkra/elastic-apm-php-agent: ~7.0
- psr/log: ~1.0
- symfony/framework-bundle: ^4.0|^5.0
Requires (Dev)
- phpunit/phpunit: ^9.0@dev
This package is auto-updated.
Last update: 2024-11-07 11:22:56 UTC
README
ElasticApmBundle is a symfony bundle that allows you to track your symfony application's performance by sending transactions and metrics to elastic apm server instance.
Installation
$ composer require spacespell/elastic-apm-bundle
-
If you are using Symfony Flex then after composer install the bundle will be enabled automatically in your
config/bundles.php
, otherwise you should manually enable this bundle. -
Create configuration file
elastic_apm.yaml
in yourconfig/packages/
.
elastic_apm: enabled: true agent: appName: '' # Name of this application, Required serverUrl: 'http://127.0.0.1:8200' # APM Server Endpoint, Default: 'http://127.0.0.1:8200' secretToken: null # Secret token for APM Server, Default: null environment: 'development' # Environment, Default: 'development'
Customization
Transaction tracking blacklist and whitelist
Exception tracking blacklist and whitelist
Transaction name
Shared context
User context
Configuration Reference
elastic_apm: enabled: true agent: appName: '' # Name of this application, Required serverUrl: 'http://127.0.0.1:8200' # APM Server Endpoint, Default: 'http://127.0.0.1:8200' secretToken: null # Secret token for APM Server, Default: null environment: '' # Environment, Default: 'development' transactions: include: # - App\Controller\API\OAuthController::tokenAction # - App\Controller\Backend\DashboardController::* exclude: # - web_profiler.controller.profiler::toolbarAction # - web_profiler.controller.profiler::panelAction # - App\Controller\Backend\UserController::loginAction # - App\Controller\Backend\ReportController::* exceptions: include: exclude: # - Symfony\Component\Security\Core\Exception\AccessDeniedException
License
The Apache-2.0 License. Please see License File for more information.