Download the PHP package eerzho/opentelemetry-auto-class-laravel without Composer

On this page you can find all versions of the php package eerzho/opentelemetry-auto-class-laravel. 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 opentelemetry-auto-class-laravel

opentelemetry-auto-class-laravel

Version Downloads PHP License

Laravel integration for automatic OpenTelemetry tracing of PHP methods via the #[Traceable] attribute. All classes with the attribute in configured namespaces are instrumented automatically using the ext-opentelemetry hook API.

This is a read-only sub-split. Please open issues and pull requests in the monorepo.

Installation

Optionally, publish the configuration to customize scanned namespaces (default is App\):

Requirements:

Usage

Basic

Add #[Traceable] to a class in the configured namespaces — all public methods will be traced automatically:

Make sure to run composer dump-autoload -o so that all classes appear in the class map.

For full details on how spans are created, argument serialization, and limitations, see opentelemetry-auto-class.

Exclude methods

Use the exclude parameter to skip specific methods from tracing:

Exclude arguments

By default, all method arguments are captured as span attributes. Use #[Arguments(exclude: [...])] on a method to hide sensitive parameters:

How it works

  1. On boot, the service provider reads namespaces from config/traceable.php
  2. Discovers all classes in those namespaces via Composer's ClassLoader::getClassMap()
  3. Scans discovered classes for #[Traceable] attribute
  4. Registers ext-opentelemetry hooks for matched methods

Disabling instrumentation

To disable tracing at runtime, use the standard OpenTelemetry environment variable:

License

MIT


All versions of opentelemetry-auto-class-laravel with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
ext-opentelemetry Version *
open-telemetry/api Version ^1.0
eerzho/opentelemetry-auto-class Version ^0.1
illuminate/support Version ^11.0 || ^12.0 || ^13.0
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 eerzho/opentelemetry-auto-class-laravel contains the following files

Loading the files please wait ...