Skip to content

[READONLY] Symfony auto-instrumentation

Notifications You must be signed in to change notification settings

opentelemetry-php/contrib-auto-symfony

Folders and files

NameName
Last commit message
Last commit date
Feb 11, 2025
Feb 25, 2025
Feb 25, 2025
Aug 23, 2023
Aug 23, 2023
Apr 8, 2024
Nov 27, 2023
Nov 27, 2023
Feb 25, 2025
Feb 21, 2023
Feb 21, 2023
Feb 21, 2023

Repository files navigation

Releases Issues Source Mirror Latest Version Stable

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

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

$ composer require open-telemetry/opentelemetry-auto-symfony

Installing dependencies and executing tests

From Symfony subdirectory:

$ composer install
$ ./vendor/bin/phpunit tests

Configuration

The extension can be disabled via runtime configuration:

OTEL_PHP_DISABLED_INSTRUMENTATIONS=symfony