PHPackages                             deleu/sensor - 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. deleu/sensor

ActiveProject

deleu/sensor
============

Profiling PHP on AWS Lambda using X-Ray

14PHP

Since Jul 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/deleugpn/sensor)[ Packagist](https://packagist.org/packages/deleu/sensor)[ RSS](/packages/deleu-sensor/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Sensor
------

[](#sensor)

#### NOT PRODUCTION READY.

[](#not-production-ready)

[![R-Xray](https://camo.githubusercontent.com/edc666a9cb6ccd9013de4725e234719d9dba96b476338e03cbbcced8496ad5b7/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f45414131716c36586b41416367655f3f666f726d61743d706e67266e616d653d6d656469756d)](https://camo.githubusercontent.com/edc666a9cb6ccd9013de4725e234719d9dba96b476338e03cbbcced8496ad5b7/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f45414131716c36586b41416367655f3f666f726d61743d706e67266e616d653d6d656469756d)

Observability for AWS Lambda powered by X-Ray

#### Usage on Laravel

[](#usage-on-laravel)

On your Service Provider, define an XRayClient instance.

```
$this->app->bind(XRayClient::class, function () {
    return new \Aws\XRay\XRayClient([
        'version' => '2016-04-12',
        'region' => 'eu-west-1',
        'credentials' => [
            'key' => 'your-key',
            'secret' => 'your-secret',
        ]
    ]);
});

```

Then extend the class you would like to Tap and attach a sensor into it.

```
$this->app->extend(LoginController::class, function (LoginController $service) {
    $sensor = $this->app->make(\Deleu\Sensor\Sensor::class);

    $tap = new \Deleu\Sensor\Tap($service, $sensor);

    return $tap->listen(['showLoginForm']);
});

```

#### Limitations

[](#limitations)

It is not possible to tap a `final` class. This is a limitation on [Ocramius/ProxyManager](https://github.com/Ocramius/ProxyManager).

#### Ideals

[](#ideals)

- Provide an easy profiling tool to help diagnose slow Lambda function execution.
- Hook into the code from outside so that no code change is required inside your core classes.
- This project is not meant to replace a complete profiling tool, but rather simply help get confirmation on educated guesses on what could be slow on your Lambda Function

#### Help Wanted

[](#help-wanted)

I've been spoiled by the amazing tools that Laravel provides for too long. I don't have any knowledge around Symfony container or how to offer a flexible configuration without using `illumiate/config` or static attributes. If you like the idea and would like to help me bring this to other communities other than Laravel, I would be very happy.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0325707319c1497846deddeb429fef8d7510c299c2e764d7e5a05b198fcb4d28?d=identicon)[Deleu](/maintainers/Deleu)

---

Top Contributors

[![deleugpn](https://avatars.githubusercontent.com/u/9533181?v=4)](https://github.com/deleugpn "deleugpn (3 commits)")

### Embed Badge

![Health badge](/badges/deleu-sensor/health.svg)

```
[![Health](https://phpackages.com/badges/deleu-sensor/health.svg)](https://phpackages.com/packages/deleu-sensor)
```

PHPackages © 2026

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