uru/opentelemetry-auto-slim-legacy
最新稳定版本:0.0.2
Composer 安装命令:
composer require uru/opentelemetry-auto-slim-legacy
包简介
OpenTelemetry auto-instrumentation for Slim Framework with legacy attributes support.
README 文档
README
This is a fork https://github.com/opentelemetry-php/contrib-auto-slim with legacy attributes support.
http.status_codeused as copy ofhttp.response.status_code;http.urlused as copy ofurl.full;http.methodused as copy ofhttp.request.method;http.user_agentused as copy ofuser_agent.original;http.schemeused as copy ofurl.scheme;http.request_content_length_uncompressedused as copy ofhttp.request.body.size;http.response_content_length_uncompressedused as copy ofhttp.response.body.size;http.targetadded to attributes;http.hostadded to attributes;
Installation
Run composer require uru/opentelemetry-auto-slim-legacy.
OpenTelemetry Slim Framework auto-instrumentation
Please read https://opentelemetry.io/docs/instrumentation/php/automatic/ for instructions on how to install and configure the extension and SDK.
Overview
Auto-instrumentation hooks are registered via composer, and spans will automatically be created for:
App::handle()- root spanInvocationStrategyInterface- controller/actionRoutingMiddleware::performRouting- update root span's name with either route name or pattern
Configuration
The extension can be disabled via runtime configuration:
OTEL_PHP_DISABLED_INSTRUMENTATIONS=slim
统计信息
- 总下载量: 1.72k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2024-11-20