Kibana version: 8.9 Elasticsearch version: 8.9 APM Server version: get it installed from kibana elasticagent APM Agent language and version: php-agent 1.9.11
**Fresh install **
Hi, Can you click on the Green Bar (Transaction), it will open a flyout with some fields. Search for field trace.id there, copy its value and then go to Discover and search for trace.id: <COPIED_VALUE> and (processor.event: 'span' or processor.event: 'transaction') and then see how many hits are you getting ?
If you only get 1 hit, it means there is no trace available for that transaction. If you get more hits, we will then might need additional information
im getting only a single hit, i guess this means there is no trace available.
we are moving away from other paid apm service to ELK. in that service we get a complete trace of same transaction. how can we get the complete trance in ELK also.
this is my php agent configurations -
elastic_apm.service_name="prod-api"
elastic_apm.secret_token=""
elastic_apm.server_url="http://xxxxxapm.us-west-2.aws.cloud.es.io:443"
elastic_apm.environment="prod"
i have also tried by changing the log level to trace, still there is no trace.
my php version is 7.2
just for clarification, a few things on how Elastic APM works: so what you show on your first screenshot is our water flow chart, which shows the transaction (it's the HTTP 2xx GET /...), and then you'd see spans on that given transaction. We do not show the stack trace on that view.
But as seen on the screenshot, the given transaction has zero span on it.
What do you see in the other tool you use?
On the screen you pasted, you'd typically see outgoing HTTP calls, DB calls, calls to messaging services and these kinds of things depending on what your application does. Those things are captured by auto-instrumentation in the Elastic PHP agent. If there is no span below a transaction, then 1) either the application does not do any of the "significant" things that the agent auto instruments, or 2) the agent does not have auto instrumentation for the given operation your application does. Here is a list of all auto instrumentation the PHP agent currently offers: Supported technologies | APM PHP Agent Reference [1.x] | Elastic
A few words specifically on stack traces: the agent does capture stack traces as well, but only on spans and not on the transaction. That can be seen when you click on a given span and not directly on the water flow chart. I assume what you actually miss is not the stack trace, but the auto instrumentation, or more detail on what exactly happens within the given HTTP request, right?
for auto-instrumentation, we are using symfony, it seems like your agent donot support symfony, but im getting the same restult for java springboot also.
Those extra steps look like method level...to enable that level on Java use the trace_methods configuration but be careful you will get very deep instrumentation.
thankyou for replying , i have enabled the profiling_inferred_spans_enabled, but still there are no methods, my apm was already showing trace details of mysql, but it donot shows the methods
Thankyou all for replying, i have made multiple changes, but still cannot get the traces and span details, in either java or php,
can you guys guide me , about what is opentelemtry integration for php, do i need to integrate OT , to get the span details.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.