Skip to content

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.

License

Notifications You must be signed in to change notification settings

phoenixgao/ElasticApmBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElasticApmBundle

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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 your config/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.

About

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.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages