uru/opentelemetry-auto-slim-legacy 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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_code used as copy of http.response.status_code;
  • http.url used as copy of url.full;
  • http.method used as copy of http.request.method;
  • http.user_agent used as copy of user_agent.original;
  • http.scheme used as copy of url.scheme;
  • http.request_content_length_uncompressed used as copy of http.request.body.size;
  • http.response_content_length_uncompressed used as copy of http.response.body.size;
  • http.target added to attributes;
  • http.host added 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 span
  • InvocationStrategyInterface - controller/action
  • RoutingMiddleware::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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2024-11-20