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-11-06 14:23:51 UTC
README
installing
composer require jtracing/jcp
Use
$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();
documentation of opentracing php https://github.com/opentracing/opentracing-php