traceguide / api-php
Traceguide instrumentation API
Installs: 33 337
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- apache/thrift: 0.9.2
- ruafozy/mersenne-twister: ^1.3
Requires (Dev)
This package is not auto-updated.
Last update: 2024-10-26 18:28:07 UTC
README
Install with Composer
composer require traceguide/api-php
Instrumentation Example
<?php require __DIR__ . '/vendor/autoload.php'; Traceguide::initialize('examples/trivial_process', '{{access_token_goes_here}}'); Traceguide::infof("The current unix time = %d", time()); $span = Traceguide::startSpan(); $span->setOperation("trivial/loop"); for ($i = 0; $i < 10; $i++) { $span->infof("Loop iteration %d", $i); echo "The current unix time is " . time() . "\n"; sleep(1); } $span->finish();
License
Copyright (c) 2015, Resonance Labs.