承接 performance-x/opentelemetry-auto-drupal 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

performance-x/opentelemetry-auto-drupal

最新稳定版本:v0.2.1

Composer 安装命令:

composer require performance-x/opentelemetry-auto-drupal

包简介

OpenTelemetry auto-instrumentation for Drupal

README 文档

README

This is an OpenTelemetry auto-instrumentation package for Drupal framework applications.

Please read https://opentelemetry.io/docs/instrumentation/php/automatic/ for instructions on how to install and configure the extension and SDK.

Requirements

Overview

The following features are supported:

  • root span creation (Drupal core hooks)
  • context propagation
  • HttpClient client span creation
  • HttpClient context propagation
  • Message Bus span creation
  • Message Transport span creation

Installation via composer

$ composer require mladenrtl/opentelemetry-auto-drupal

Installing dependencies and executing tests

From Drupal subdirectory:

$ composer install
$ ./vendor/bin/phpunit tests

Configuration

The extension can be disabled via runtime configuration:

OTEL_PHP_DISABLED_INSTRUMENTATIONS=drupal

Query Explain Threshold Configuration

The EXPLAIN threshold feature allows you to set a minimum duration threshold for capturing EXPLAIN results in your traces. When OTEL_PHP_DRUPAL_EXPLAIN_QUERIES is enabled, you can use OTEL_PHP_DRUPAL_EXPLAIN_THRESHOLD to specify the minimum query duration (in milliseconds) that should trigger EXPLAIN capture.

For example:

OTEL_PHP_DRUPAL_EXPLAIN_THRESHOLD=100  # Capture EXPLAIN for queries taking longer than 100ms

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2025-02-19