https://github.com/opentelemetry-php/contrib-auto-mongodb
[READONLY] OpenTelemetry mongodb auto-instrumentation
https://github.com/opentelemetry-php/contrib-auto-mongodb
Last synced: about 1 month ago
JSON representation
[READONLY] OpenTelemetry mongodb auto-instrumentation
- Host: GitHub
- URL: https://github.com/opentelemetry-php/contrib-auto-mongodb
- Owner: opentelemetry-php
- Created: 2023-07-11T01:22:10.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-09-24T00:31:43.000Z (about 2 months ago)
- Last Synced: 2025-09-24T01:13:13.090Z (about 2 months ago)
- Language: PHP
- Size: 47.9 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-mongodb - opentelemetry php auto-mongodb - Automatic monitoring of MongoDB commands with OpenTelemetry (Libraries / PHP)
README
[](https://github.com/opentelemetry-php/contrib-auto-mongodb/releases)
[](https://github.com/open-telemetry/opentelemetry-php/issues)
[](https://github.com/open-telemetry/opentelemetry-php-contrib/tree/main/src/Instrumentation/MongoDB)
[](https://github.com/opentelemetry-php/contrib-auto-mongodb)
[](https://packagist.org/packages/open-telemetry/opentelemetry-auto-mongodb/)
[](https://packagist.org/packages/open-telemetry/opentelemetry-auto-mongodb/)
This is a read-only subtree split of https://github.com/open-telemetry/opentelemetry-php-contrib.
# OpenTelemetry MongoDB auto-instrumentation
Please read https://opentelemetry.io/docs/instrumentation/php/automatic/ for instructions on how to
install and configure the extension and SDK.
## Overview
Auto-instrumentation hooks are registered via composer, and spans will automatically be created for all MongoDB
operations like `find` or `aggregate`.
## Configuration
The extension can be disabled via [runtime configuration](https://opentelemetry.io/docs/instrumentation/php/sdk/#configuration):
```shell
OTEL_PHP_DISABLED_INSTRUMENTATIONS=mongodb
```