jtracing / jcp
"Jeager opentracing client php"
dev-master
2022-07-20 03:22 UTC
Requires
- php: ^8.1
- jonahgeorge/jaeger-client-php: v1.4.1
This package is not auto-updated.
Last update: 2024-09-25 13:47:14 UTC
README
安装
composer require jtracing/jcp
使用
$tracer = OpentracingFactory::makeTracer();
$scope = $tracer->startActiveSpan('action_name', []);
//......
$span = $scope->getSpan();
$span->setTag("tag_name", "tag_value");
//......
//log
$span->log([
"key" => $value,
], $time);
$scope->close();
$tracer->flush();
opentracing php 文档 https://github.com/opentracing/opentracing-php