"Jeager opentracing client php"

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

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