jtracing / jcp
"Jeager opentracing client php"
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jtracing/jcp
Requires
- php: ^8.1
- jonahgeorge/jaeger-client-php: v1.4.1
This package is not auto-updated.
Last update: 2025-10-08 18:32:56 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