"Jeager opentracing client php"

dev-master 2022-07-20 03:22 UTC

This package is not auto-updated.

Last update: 2024-05-22 12:14:20 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