PHPackages                             spacespell/elastic-apm-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. spacespell/elastic-apm-bundle

ActiveSymfony-bundle[Logging &amp; Monitoring](/categories/logging)

spacespell/elastic-apm-bundle
=============================

Elastic APM Bundle

v1.0.0-rc(6y ago)1253.6k6Apache-2.0PHPCI failing

Since Jan 21Pushed 6y ago3 watchersCompare

[ Source](https://github.com/phoenixgao/ElasticApmBundle)[ Packagist](https://packagist.org/packages/spacespell/elastic-apm-bundle)[ Docs](https://github.com/spacespell/ElasticApmBundle)[ RSS](/packages/spacespell-elastic-apm-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

ElasticApmBundle
================

[](#elasticapmbundle)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d5593c9bd39cb352fabb8dc3c25919e35cd212880bdb6270030ee8bd58e3c849/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73706163657370656c6c2f656c61737469632d61706d2d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spacespell/elastic-apm-bundle)[![Software License](https://camo.githubusercontent.com/01a1440e1375d758f5a5745c986d7a4e0c73db3c662311804e464c72b7eb98c1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f73706163657370656c6c2f656c61737469632d61706d2d62756e646c65)](LICENSE)[![Build Status](https://camo.githubusercontent.com/ebbf4c8db91d4643d26af7a75cd4afff2cf7e719dfd3c2af95ebaac0e2077cf1/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73706163657370656c6c2f656c61737469632d61706d2d62756e646c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/spacespell/elastic-apm-bundle)[![Coverage Status](https://camo.githubusercontent.com/4708b8625d32e9b4ffcedd344b2ef56e529541f797e0a8960bc635b211fb2abb/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f73706163657370656c6c2f656c61737469632d61706d2d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/spacespell/elastic-apm-bundle/code-structure)[![Quality Score](https://camo.githubusercontent.com/53498f200df126556c73912dbf8590a0ddc509fc5cb3e7eaa320838075f89f4d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73706163657370656c6c2f656c61737469632d61706d2d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/spacespell/elastic-apm-bundle)[![Total Downloads](https://camo.githubusercontent.com/f2e6a863624f558e7feca4f200d4fb5b95bce04b9868c0e45e1118ec42e49b47/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73706163657370656c6c2f656c61737469632d61706d2d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spacespell/elastic-apm-bundle)

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
------------

[](#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
-------------

[](#customization)

### Transaction tracking blacklist and whitelist

[](#transaction-tracking-blacklist-and-whitelist)

### Exception tracking blacklist and whitelist

[](#exception-tracking-blacklist-and-whitelist)

### Transaction name

[](#transaction-name)

### Shared context

[](#shared-context)

### User context

[](#user-context)

Configuration Reference
-----------------------

[](#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
-------

[](#license)

The Apache-2.0 License. Please see [License File](LICENSE) for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2302d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a882903d8021bfa7d4ec3eece4bf974df4d6d60a8f8ff1a9f464c51595fb92b?d=identicon)[phoenixgao](/maintainers/phoenixgao)

---

Top Contributors

[![phoenixgao](https://avatars.githubusercontent.com/u/853338?v=4)](https://github.com/phoenixgao "phoenixgao (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/spacespell-elastic-apm-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/spacespell-elastic-apm-bundle/health.svg)](https://phpackages.com/packages/spacespell-elastic-apm-bundle)
```

###  Alternatives

[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k227.1M273](/packages/sentry-sentry)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2222.9M248](/packages/open-telemetry-sdk)[open-telemetry/api

API for OpenTelemetry PHP.

1833.0M214](/packages/open-telemetry-api)[markrogoyski/simplelog-php

Powerful PSR-3 logging. So easy, it's simple.

2818.1k4](/packages/markrogoyski-simplelog-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
