https://github.com/opentelemetry-php/contrib-auto-symfony
[READONLY] Symfony auto-instrumentation
https://github.com/opentelemetry-php/contrib-auto-symfony
Last synced: about 1 year ago
JSON representation
[READONLY] Symfony auto-instrumentation
- Host: GitHub
- URL: https://github.com/opentelemetry-php/contrib-auto-symfony
- Owner: opentelemetry-php
- Created: 2023-02-21T08:39:02.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-12T10:21:59.000Z (over 1 year ago)
- Last Synced: 2025-04-12T19:53:21.486Z (about 1 year ago)
- Language: PHP
- Size: 68.4 KB
- Stars: 38
- Watchers: 8
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/opentelemetry-php/contrib-auto-symfony/releases)
[](https://github.com/open-telemetry/opentelemetry-php/issues)
[](https://github.com/open-telemetry/opentelemetry-php-contrib/tree/main/src/Instrumentation/Symfony)
[](https://github.com/opentelemetry-php/contrib-auto-symfony)
[](https://packagist.org/packages/open-telemetry/opentelemetry-auto-symfony/)
[](https://packagist.org/packages/open-telemetry/opentelemetry-auto-symfony/)
This is a read-only subtree split of https://github.com/open-telemetry/opentelemetry-php-contrib.
# OpenTelemetry Symfony auto-instrumentation
This is an OpenTelemetry auto-instrumentation package for Symfony framework applications.
Please read https://opentelemetry.io/docs/instrumentation/php/automatic/ for instructions on how to
install and configure the extension and SDK.
## Requirements
* [OpenTelemetry extension](https://opentelemetry.io/docs/instrumentation/php/automatic/#installation)
* OpenTelemetry SDK and exporters (required to actually export traces)
## Overview
The following features are supported:
* root span creation (`Symfony\Component\HttpKernel\HttpKernel::handle` hook)
* context propagation
* HttpClient client span creation
* HTTPClient context propagation
* Message Bus span creation
* Message Transport span creation
## Installation via composer
```bash
$ composer require open-telemetry/opentelemetry-auto-symfony
```
## Installing dependencies and executing tests
From Symfony subdirectory:
```bash
$ composer install
$ ./vendor/bin/phpunit tests
```
## Configuration
The extension can be disabled via [runtime configuration](https://opentelemetry.io/docs/instrumentation/php/sdk/#configuration):
```shell
OTEL_PHP_DISABLED_INSTRUMENTATIONS=symfony
```