1.2.1564. ext/opencensus¶
Extension PHP for OpenCensus.
A stats collection and distributed tracing framework.
<?php
opencensus_trace_begin('root', ['spanId' => '1234']);
opencensus_trace_add_annotation('foo');
opencensus_trace_begin('inner', []);
opencensus_trace_add_annotation('asdf', ['spanId' => '1234']);
opencensus_trace_add_annotation('abc');
opencensus_trace_finish();
opencensus_trace_finish();
$traces = opencensus_trace_list();
echo "Number of traces: " . count($traces) . "\n";
$span = $traces[0];
print_r($span->timeEvents());
$span2 = $traces[1];
print_r($span2->timeEvents());
?>
See also opencensus.
1.2.1564.1. Specs¶
Short name |
Extensions/Extopencensus |
Rulesets |
|
Exakat since |
1.1.7 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Available in |