splunk/tracer
Composer 安装命令:
composer require splunk/tracer
包简介
Splunk instrumentation API
README 文档
README
The SplunkTracing distributed tracing library for PHP.
Installation
composer require splunk/tracer
The splunk/tracer package is available here on packagist.org.
Getting started
<?php require __DIR__ . '/vendor/autoload.php'; SplunkTracing::initGlobalTracer('examples/trivial_process', '{your_access_token}'); $span = SplunkTracing::startSpan("trivial/loop"); for ($i = 0; $i < 10; $i++) { $span->logEvent("loop_iteration", $i); echo "The current unix time is " . time() . "\n"; usleep(1e5); $child = SplunkTracing::startSpan("child_span", array(parent => $span)); usleep(2e5); $child->logEvent("hello world"); $child->finish(); usleep(1e5); } $span->finish();
See lib/api.php for detailed API documentation.
Developer Setup
brew install composer
make install
make test
This library is the Splunk binding for OpenTracing. See the OpenTracing PHP API for additional detail.
License
The Splunk Tracer for PHP is licensed under the MIT License. Details can be found in the LICENSE file.
Third-party libraries
This is a fork of the PHP tracer from Lightstep, which is also licensed under the MIT License. Links to the original repository and license are below:
统计信息
- 总下载量: 1.36k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-10-22