kytoonlabs/opentelemetry-auto-guzzle

为 Guzzle 提供的 OpenTelemetry 自动检测。

1.0.0 2024-08-04 01:48 UTC

This package is auto-updated.

Last update: 2024-09-04 02:48:16 UTC


README

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

概览

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

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

配置

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

OTEL_PHP_DISABLED_INSTRUMENTATIONS=guzzle