yoopies/dd-trace-polyfill-php 问题修复 & 功能扩展

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

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

yoopies/dd-trace-polyfill-php

最新稳定版本:1.2.0

Composer 安装命令:

composer require yoopies/dd-trace-polyfill-php

包简介

Polyfill for the Datadog dd-trace PHP extension

README 文档

README

Polyfill for the dd-trace PHP extension.

Total Downloads

Using Datadog Trace's PHP extension requires us to use this pattern everywhere:

if (extension_loaded('ddtrace')) {
    $rootSpan = \DDTrace\root_span();
    $rootSpan->meta['usr.id'] = '123456789';
}

This package is a polyfill re-declaring all the functions provided by Datadog when the extension is not installed. In other words, after installing this polyfill you can rely on the function to exist:

$span = \DDTrace\active_span();

If the extension is installed, everything will work as expected. If not (for example on your development machine) nothing will happen.

Installation

composer require yoopies/dd-trace-polyfill-php

That's all you need to do!

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固