I'm trying to learn how spans work with Elasticsearch 8.8 + APM + PHP.
So far it seems my Fleet Server, APM, ELK stack is working. I also got PHP to submit transactions, exceptions and errors to the APM.
The only thing I don't know if I'm doing right is using spans with PHP. Here's my PHP code for a file called span.php
<?php
use Elastic\Apm\ElasticApm;
$transaction = ElasticApm::beginCurrentTransaction(
'transaction_name',
'transaction_type'
);
$span = $transaction->beginCurrentSpan(
'spangled_banner',
'span_type',
'span_sub-type', // optional
'span_action' // optional
);
try {
// do your thing ...
echo 'start sleep';
sleep(3);
echo 'done sleeping';
} finally {
$span->end();
}
I run this script by visiting http://localhost/span.php
.
I'm wondering where in Kibana do I go to see this span information? I was hoping to see the word "spangled_banner" somewhere, but where do I click to?
Here's all that I'm seeing so far:
Am I missing something?