PHPackages                             bedita/instrumentation - 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. bedita/instrumentation

ActiveCakephp-plugin[Logging &amp; Monitoring](/categories/logging)

bedita/instrumentation
======================

OpenTelemetry instrumentation plugin for BEdita

v2.0.0(5mo ago)11.3k↓50%1LGPL-3.0-or-laterPHPPHP ^8.3CI passing

Since Oct 18Pushed 5mo ago4 watchersCompare

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

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

BEdita/Instrumentation plugin for BEdita
========================================

[](#beditainstrumentation-plugin-for-bedita)

[![Github Actions](https://github.com/bedita/instrumentation/workflows/php/badge.svg)](https://github.com/bedita/instrumentation/actions?query=workflow%3Aphp)[![image](https://camo.githubusercontent.com/130da8cd8028ef581f7fa8be08f67ebb89b0925febdda539b4e902e6b983b828/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6265646974612f696e737472756d656e746174696f6e2e7376673f6c6162656c3d737461626c65)](https://packagist.org/packages/bedita/instrumentation)

This library provides auto-instrumentation for BEdita applications, according to [OpenTelemetry](https://opentelemetry.io/) specifications.

Requirements
------------

[](#requirements)

This library requires PHP 8.1+ and the [OpenTelemetry PHP extension](https://github.com/open-telemetry/opentelemetry-php-instrumentation).

Other optional requirements:

- `ext-grpc` required to use gRPC as transport for the OTLP exporter
- `ext-protobuf` significant performance improvement for otlp+protobuf exporting
- `ext-zlib` if you want to compress exported data
- `open-telemetry/opentelemetry-auto-psr15` auto-instrumentation for CakePHP middlewares (PSR-15)

Installation
------------

[](#installation)

```
composer require bedita/instrumentation
```

Note that installing this library by itself does not generate traces. You need to install and configure the [OpenTelemetry SDK](https://opentelemetry.io/docs/languages/php/instrumentation/#initialize-the-sdk)and at least an [exporter](https://opentelemetry.io/docs/languages/php/exporters/):

```
composer require open-telemetry/sdk open-telemetry/exporter-otlp
```

Configuration
-------------

[](#configuration)

OpenTelemetry's auto-instrumentation is completely configurable through environment variables. See the [SDK configuration](https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/) documentation and the [PHP-specific documentation](https://opentelemetry.io/docs/languages/php/sdk/#configuration).

This library provides the following instrumentations, which can be enabled or disabled individually using their respective names:

- `bedita` main instrumentation (currently does nothing by itself)
- `bedita.client` CakePHP HTTP client (requires `bedita`)
- `cakephp` CakePHP HTTP server, controllers and commands ([project](https://github.com/open-telemetry/opentelemetry-php-contrib/tree/main/src/Instrumentation/CakePHP))
- `pdo` PHP PDO ([project](https://github.com/open-telemetry/opentelemetry-php-contrib/tree/main/src/Instrumentation/PDO))
- `psr3` loggers compliant with PSR-3 standard ([project](https://github.com/open-telemetry/opentelemetry-php-contrib/tree/main/src/Instrumentation/Psr3))
- `psr16` cache engines compliant with PSR-16 standard ([project](https://github.com/open-telemetry/opentelemetry-php-contrib/tree/main/src/Instrumentation/Psr16))

### Example configuration

[](#example-configuration)

This configuration enables auto-instrumentation and the export of traces and logs using the otlp+protobuf protocol to a local [backend](https://opentelemetry.io/ecosystem/vendors/):

```
# PHP injection
export OTEL_PHP_AUTOLOAD_ENABLED=true

# Export
export OTEL_LOG_LEVEL="info"
export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf"
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318/"

# Tracing
# export OTEL_TRACES_SAMPLER="parentbased_traceidratio"
# export OTEL_TRACES_SAMPLER_ARG="0.1"
export OTEL_PHP_DETECTORS="env,host,os,sdk"
export OTEL_RESOURCE_ATTRIBUTES="service.namespace=my-namespace"
export OTEL_SERVICE_NAME="my-service"

# Propagation
export OTEL_PROPAGATORS="tracecontext,baggage"

# Instrumentation
export OTEL_PHP_EXCLUDED_URLS="/status"
# export OTEL_PHP_DISABLED_INSTRUMENTATIONS="pdo"

# Log
# see: https://github.com/open-telemetry/opentelemetry-php-contrib/tree/main/src/Instrumentation/Psr3#mode
export OTEL_PHP_PSR3_MODE="export"
```

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance72

Regular maintenance activity

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~104 days

Total

5

Last Release

160d ago

Major Versions

v1.1.0 → v2.0.02025-12-04

PHP version history (2 changes)v1.0.0PHP ^8.1

v2.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/8762bf55fa377228164991afe77ca94b7384eb1f5ed79781cad7835624cc27c3?d=identicon)[d.didomenico](/maintainers/d.didomenico)

![](https://www.gravatar.com/avatar/36a1b89a62185411675b209cd97652abd29a4e98bd3e68cb5e402bee9ae883d6?d=identicon)[le0m](/maintainers/le0m)

---

Top Contributors

[![didoda](https://avatars.githubusercontent.com/u/2227145?v=4)](https://github.com/didoda "didoda (10 commits)")[![le0m](https://avatars.githubusercontent.com/u/10656716?v=4)](https://github.com/le0m "le0m (7 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/bedita-instrumentation/health.svg)

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

###  Alternatives

[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2222.9M248](/packages/open-telemetry-sdk)[keepsuit/laravel-opentelemetry

OpenTelemetry integration for laravel

142347.8k](/packages/keepsuit-laravel-opentelemetry)[open-telemetry/opentelemetry-auto-symfony

OpenTelemetry auto-instrumentation for Symfony

551.2M1](/packages/open-telemetry-opentelemetry-auto-symfony)[open-telemetry/opentelemetry-auto-pdo

OpenTelemetry auto-instrumentation for PDO

111.2M1](/packages/open-telemetry-opentelemetry-auto-pdo)[open-telemetry/opentelemetry-auto-wordpress

OpenTelemetry auto-instrumentation for Wordpress

17166.0k](/packages/open-telemetry-opentelemetry-auto-wordpress)[open-telemetry/symfony-sdk-bundle

OpenTelemetry Symfony integration

1182.6k4](/packages/open-telemetry-symfony-sdk-bundle)

PHPackages © 2026

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