PHPackages                             compasshp/datadog-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. compasshp/datadog-bundle

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

compasshp/datadog-bundle
========================

Automatically sends user information to Datadog APM/ASM.

v1.4(6mo ago)02.0kMITPHPPHP &gt;=8.0

Since Mar 27Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/compasshp/datadog-bundle)[ Packagist](https://packagist.org/packages/compasshp/datadog-bundle)[ Docs](https://github.com/compasshp/datadog-bundle)[ RSS](/packages/compasshp-datadog-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (14)Versions (8)Used By (0)

DataDog Bundle
==============

[](#datadog-bundle)

This bundle allows you to automatically track user information in DataDog's APM and ASM modules.

**DataDog APM**

For DataDog APM, it will automatically pass in the session ID, and -- if logged in -- the currently logged in username. You can additionally specify additional properties to pass to APM.

**DataDog ASM**

If enabled, for DataDog Application Security Monitoring, all success and failure login attempts will be passed to the datadog agent. You can additionally specify additional properties to pass to APM.

Installation
============

[](#installation)

Prerequisites
-------------

[](#prerequisites)

The [DataDog Agent](https://docs.datadoghq.com/tracing/trace_collection/dd_libraries/php/?tab=containers) needs to be configured in your application with tracing enabled.

If you are using Application Security Monitoring, the agent should be configured with the `--enable-appsec` argument.

Get the bundle
--------------

[](#get-the-bundle)

Let Composer download and install the bundle by running

```
composer require compasshp/datadog-bundle
```

in a shell.

Enable the bundle
-----------------

[](#enable-the-bundle)

Register the bundle (you most likely don't want this bundle enable)

```
// in config/bundles.php
return [
	// ...
	Compass\DatadogBundle\CompassDatadogBundle::class => ['all' => true],
];
```

Configure
---------

[](#configure)

Create the configuration file:

```
# config/packages/compass_datadog.yaml

# The DataDog agent is typically not available in your test environment.
when@test:
  compass_datadog:
    tracing:
      enabled: false
    appsec:
      enabled: false

compass_datadog:
  tracing:
    enabled: true
    user_entity: App\Entity\User
    user_properties: [ firstName, lastName, email ] # specify any additional properties you want traced.  Username is always traced when someone is logged in.
  appsec:
    enabled: true # default is false
```

And that's it! Once configured, your application will automatically begin sending additional metadata to DataDog.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance67

Regular maintenance activity

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~159 days

Recently: every ~236 days

Total

7

Last Release

194d ago

Major Versions

v0.1 → v1.1.22023-04-05

v0.1.3 → v1.1.32024-01-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/040f14852360789da0c1c6455838dbc44cae7f38be3ba79440260206ab614d8c?d=identicon)[mikeyudin](/maintainers/mikeyudin)

---

Top Contributors

[![mikeyudin](https://avatars.githubusercontent.com/u/981848?v=4)](https://github.com/mikeyudin "mikeyudin (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/compasshp-datadog-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/compasshp-datadog-bundle/health.svg)](https://phpackages.com/packages/compasshp-datadog-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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