定制 traceguide/api-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

traceguide/api-php

最新稳定版本:1.0.44

Composer 安装命令:

composer require traceguide/api-php

包简介

Traceguide instrumentation API

README 文档

README

Install with Composer

composer require traceguide/api-php

Instrumentation Example

<?php

require __DIR__ . '/vendor/autoload.php';

Traceguide::initialize('examples/trivial_process', '{{access_token_goes_here}}');
Traceguide::infof("The current unix time = %d", time());

$span = Traceguide::startSpan();
$span->setOperation("trivial/loop");
for ($i = 0; $i < 10; $i++) {
    $span->infof("Loop iteration %d", $i);
    echo "The current unix time is " . time() . "\n";
    sleep(1);
}
$span->finish();

License

The MIT License.

Copyright (c) 2015, Resonance Labs.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-02