Download the PHP package octo-php/symfony-otel without Composer

On this page you can find all versions of the php package octo-php/symfony-otel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package symfony-otel

octo-php/symfony-otel

Intégration OpenTelemetry pour la plateforme async PHP — export de traces et métriques coroutine-safe depuis le bridge Symfony.

Installation

Ce package dépend de open-telemetry/sdk et open-telemetry/exporter-otlp. Si vous ne souhaitez pas d'OTEL, n'installez pas ce package.

Configuration

La configuration utilise exclusivement les variables d'environnement standard OpenTelemetry :

Variable Type Description
OTEL_EXPORTER_OTLP_ENDPOINT string Endpoint de l'exporter OTLP (ex: http://localhost:4318)

Aucune variable d'environnement custom n'est introduite pour la configuration OTEL.

Via le bundle

L'activation/désactivation se fait via le bundle. L'endpoint est toujours configuré via OTEL_EXPORTER_OTLP_ENDPOINT.

Traces

Root span

Un span SERVER est créé pour chaque requête Symfony, couvrant l'intégralité du cycle de vie dans le bridge (du début du handle jusqu'après le reset).

Attributs du root span :

Attribut Description
http.method Méthode HTTP (GET, POST, etc.)
http.url URL de la requête
http.status_code Code de statut de la réponse
http.request_id Request ID propagé
symfony.route Nom de la route Symfony
symfony.controller Nom du controller Symfony

Child spans

Trois child spans INTERNAL sont créés pour chaque requête :

Span Description
symfony.kernel.handle Durée du HttpKernel::handle()
symfony.response.convert Durée de la conversion de la réponse
symfony.reset Durée du reset/terminate

Propagation du trace context

Le package propage le trace context entrant via les headers W3C Trace Context (traceparent, tracestate) depuis la requête OpenSwoole vers le span OTEL. Les requêtes entrantes avec un trace context existant sont rattachées au trace parent.

Gestion des exceptions

Si une exception se produit avant la création des child spans, le root span capture l'exception et se termine correctement (pas de span partiel ou orphelin).

Métriques OTEL

Les métriques du MetricsBridge sont exportées vers OTEL :

Métrique Type Description
symfony_requests_total counter Requêtes traitées
symfony_request_duration_ms histogram Durée de traitement
symfony_exceptions_total counter Exceptions levées
symfony_reset_duration_ms histogram Durée du reset

Batch processor coroutine-safe

Le CoroutineSafeBatchProcessor exporte les spans de manière non-bloquante :

Licence

MIT


All versions of symfony-otel with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
octo-php/symfony-bridge Version ^0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package octo-php/symfony-otel contains the following files

Loading the files please wait ...