iqtool/ciotel
最新稳定版本:0.1
Composer 安装命令:
composer require iqtool/ciotel
包简介
OpenTelemetry Integration for CodeIgniter 4
README 文档
README
OpenTelemetry Integration for CodeIgniter 4.
Description
This package provides seamless integration of OpenTelemetry with CodeIgniter 4 applications. It enables automatic tracing of incoming requests, database queries, and integrates with the CodeIgniter logging system.
Features
- Automatic Request Tracing: Automatically instrument incoming HTTP requests using
OtelFilter. - Database Query Tracing: Automatically trace database queries including SQL statements and execution time using
OtelDbListener. - Log Integration: Pushes CodeIgniter logs (
log_message()) to OpenTelemetry viaOtelHandler. - Zero Configuration: Uses CodeIgniter 4's
Registrarfor auto-discovery of events, filters, and services.
Installation
Install the package via Composer:
composer require iqtool/ciotel
Configuration
The package is designed to work out-of-the-box. It uses standard OpenTelemetry environment variables for configuration (e.g., OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_SERVICE_NAME).
Database Tracing
Database tracing spans will automatically include:
db.system: Trace driver (e.g. mysql, sqlite).db.statement: The executed SQL query.db.name: Database name.db.hostname: Database host.
License
This project is licensed under the MIT License - see the LICENSE file for details.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-19