Additional integration with AppNeta TraceView for Symfony2 (or anything else using EventDispatcher/HTTPKernel).

v1.0.1 2014-10-23 18:13 UTC


A Symfony request profiled in TraceView.

The AppNeta\TraceViewBundle bundle provides additional information about Symfony2 components to AppNeta TraceView. It currently supports:

  • Reporting a controller and action
  • Tracking kernel events as layers
  • Tracking other event listeners as profiles


First, you'll need to pull in the TraceViewBundle as one of your app's dependencies using Composer. Either use composer require, or in your composer.json file, modify the "require" section to include the bundle:

    "require": {
        "php": ">=5.3.3",
        "symfony/symfony": "~2.4",
        "doctrine/orm": "~2.2,>=2.2.3",
        "doctrine/doctrine-bundle": "~1.2",
        "twig/extensions": "~1.0",
        "appneta/traceview-bundle": "master@dev" # Or whatever version you prefer.

If installing directly from GitHub, rather than from Packagist, you can add the extra repository to your composer.json in a top-level key of repositories structured like so:

    "repositories": [
            "type": "vcs",
            "url": ""

After using Composer to pull in the bundle, you'll need to make it available to your app. Add it to app/AppKernel.php, looking something like this:

    public function registerBundles()
        $bundles = array(
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
            new Symfony\Bundle\TwigBundle\TwigBundle(),
            new AppNeta\TraceViewBundle\TraceViewBundle(),

        return $bundles;

To enable controller/action and event listener tracking, add this section to your config.yml:

  event_dispatcher.class: AppNeta\TraceViewBundle\EventDispatcher\TraceViewContainerAwareEventDispatcher

Known issues

  • Friendlier controller/action name reporting for long or multiple controllers
  • Event dispatcher replacement currently conflicts with the Symfony debug toolbar
  • User-configurable settings for which dispatched events to whitelist/blacklist for tracking


The best way to improve this bundle is to work with the people using it! We actively encourage patches, pull requests, feature requests, and bug reports. Current goals include Symfony developer toolbar integration and performance or architectural improvements where possible.