open-telemetry/opentelemetry-auto-guzzle

为 Guzzle 提供的 OpenTelemetry 自动检测

1.0.0 2024-06-25 01:39 UTC

This package is auto-updated.

Last update: 2024-09-12 01:06:16 UTC


README

Releases Issues Source Mirror Latest Version Stable

这是从 https://github.com/open-telemetry/opentelemetry-php-contrib 分离的只读子树。

OpenTelemetry Guzzle 自动检测

请阅读 https://opentelemetry.io/docs/instrumentation/php/automatic/ 了解如何安装和配置扩展和 SDK 的说明。

概述

通过 composer 注册自动检测钩子。

  • 自动为每个发送的 Guzzle 请求(同步或异步)创建跨度。
  • 在请求中添加 traceparent 标头以方便分布式跟踪。

配置

可以通过 运行时配置 禁用此扩展。

OTEL_PHP_DISABLED_INSTRUMENTATIONS=guzzle