承接 open-telemetry/opentelemetry-propagation-cloudtrace 相关项目开发

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

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

open-telemetry/opentelemetry-propagation-cloudtrace

最新稳定版本:0.1.0

Composer 安装命令:

composer require open-telemetry/opentelemetry-propagation-cloudtrace

包简介

CloudTraceContext propagator extension for OpenTelemetry PHP.

README 文档

README

Releases Issues Source Mirror Latest Version Stable

This is a read-only subtree split of https://github.com/open-telemetry/opentelemetry-php-contrib.

OpenTelemetry CloudTrace Propagator

CloudTrace is a propagator that supports the specification for the header "x-cloud-trace-context" used for trace context propagation across service boundaries. (https://cloud.google.com/trace/docs/setup#force-trace). OpenTelemetry PHP CloudTrace Propagator Extension provides option to use it bi-directionally or one-way. One-way does not inject the header for downstream consumption, it only processes the incoming headers and returns the correct span context. It only attaches to existing X-Cloud-Trace-Context traces and does not create downstream ones.

Installation

composer require open-telemetry/opentelemetry-propagation-cloudtrace

Usage

For one-way CloudTrace:

$propagator = CloudTracePropagator::getOneWayInstance();

For bi-directional CloudTrace:

$propagator = CloudTracePropagator::getInstance();

统计信息

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

GitHub 信息

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

其他信息

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