Download the PHP package iqlearning/laravel-otel without Composer
On this page you can find all versions of the php package iqlearning/laravel-otel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download iqlearning/laravel-otel
More information about iqlearning/laravel-otel
Files in iqlearning/laravel-otel
Package laravel-otel
Short Description Laravel integration for OpenTelemetry with dual exporters (Jaeger & Zipkin) using JSON protocol
License MIT
Informations about the package laravel-otel
Laravel OpenTelemetry Package
A Laravel package providing OpenTelemetry integration with dual exporters for Jaeger and Zipkin using the JSON protocol.
Features
- ✅ Dual Exporters: Send traces to both Jaeger and Zipkin simultaneously
- ✅ JSON Protocol: OTLP HTTP JSON for Jaeger, HTTP JSON for Zipkin
- ✅ Auto-Discovery: Automatic service provider registration
- ✅ Flexible Sampling: Support for multiple sampling strategies
- ✅ Easy Configuration: Environment-based configuration
- ✅ Laravel Integration: Native Laravel service provider
Disclaimer
- Made with Google Antigravity
- Be extra cautious using this package for possible security vulnerability
Installation
1. Install via Composer
2. Publish Configuration
This will publish the config/opentelemetry.php configuration file.
3. Configure Environment Variables
Add the following to your .env file:
Usage
Basic Usage
The package automatically registers the OpenTelemetry service provider. Simply inject the TracerInterface into your classes:
Configuration
Exporter Selection
Choose which exporter(s) to use:
Sampling Strategies
Control which traces are collected:
Infrastructure Setup
Docker Compose
Create a docker-compose.yml file:
Start the services:
Viewing Traces
- Jaeger UI: http://localhost:16686
- Zipkin UI: http://localhost:9411
Requirements
- PHP 8.1 or higher
- Laravel 10.0 or 11.0
- OpenTelemetry PHP Extension (for auto-instrumentation)
License
This package is open-sourced software licensed under the MIT license.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
For issues, questions, or contributions, please visit the GitHub repository.
All versions of laravel-otel with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
open-telemetry/sdk Version ^1.0
open-telemetry/exporter-otlp Version ^1.0
open-telemetry/exporter-zipkin Version ^1.0
open-telemetry/opentelemetry-auto-laravel Version ^0.0
php-http/guzzle7-adapter Version ^1.0