PHPackages                             0to10/observability-php - 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. 0to10/observability-php

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

0to10/observability-php
=======================

Library to simplify customising observability integrations in PHP projects.

2.0.2(1y ago)214.0k—0%MITPHPPHP &gt;=7.3 | &gt;8.0

Since Apr 15Pushed 1y ago2 watchersCompare

[ Source](https://github.com/0to10/observability-php)[ Packagist](https://packagist.org/packages/0to10/observability-php)[ RSS](/packages/0to10-observability-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (4)Versions (9)Used By (0)

[![Maintainability Rating](https://camo.githubusercontent.com/7c3601df8c1647c657ccdc640d18a8a25516af7b3efee45545d93121afa6efcc/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d30746f31305f6f62736572766162696c6974792d706870266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/summary/new_code?id=0to10_observability-php)[![Quality Gate Status](https://camo.githubusercontent.com/1b180a305946260588d352daa601a575b2d637395f222be3788955cd54972fc3/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d30746f31305f6f62736572766162696c6974792d706870266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/summary/new_code?id=0to10_observability-php)[![Code Smells](https://camo.githubusercontent.com/40dd57ac7ac692c7427bbd561f736851f88f09a82d62210ce268c86baa7fe69f/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d30746f31305f6f62736572766162696c6974792d706870266d65747269633d636f64655f736d656c6c73)](https://sonarcloud.io/summary/new_code?id=0to10_observability-php)[![Coverage](https://camo.githubusercontent.com/19a53bbb8c8d4cbdb2ee2d1f2248ef46fdcb1e0bcbdea452f479c5775dcf252e/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d30746f31305f6f62736572766162696c6974792d706870266d65747269633d636f766572616765)](https://sonarcloud.io/summary/new_code?id=0to10_observability-php)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c5bdaa5c98132c84145f9285b666c097c88633625c5b44d53e8b66e1e53267c9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f30746f31302f6f62736572766162696c6974792d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/0to10/observability-php/?branch=main)[![Build Status](https://camo.githubusercontent.com/c879e5117b1e4fc6053507b09b5358778f9f64c5c2ea11ff8b6f81db25a238cb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f30746f31302f6f62736572766162696c6974792d7068702f6261646765732f6275696c642e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/0to10/observability-php/build-status/main)[![Code Coverage](https://camo.githubusercontent.com/adf06ce23ba20f53bc6dcaa037dc187ea117b1567527a78909176e229c233b88/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f30746f31302f6f62736572766162696c6974792d7068702f6261646765732f636f7665726167652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/0to10/observability-php/?branch=main)

Observability library for PHP
=============================

[](#observability-library-for-php)

This package aims to make it easier to monitor your application by generalising frequently used methods to customise how you instrument your code.

Getting started
---------------

[](#getting-started)

Getting started is usually easy: just follow the instructions below.

### Installation

[](#installation)

Use [Composer](https://getcomposer.org/) to install this library into your project:

```
composer require 0to10/observability-php
```

### Basic usage

[](#basic-usage)

Below is the high-level documentation of how to work with this library.

```
