I am migrating from Elastic APM Agent to OpenTelemetry Agent. The integration is working very well, exception one issue that is slowing us down when identifying the problem:
From Dependency, select Operation, then select one span, Latency and Throughtput dashboards are working, but the Trace dashboard said The selected trace cannot be found
This very probably comes from the data model difference between otel and our current data model.
Elastic APM has the concept of transactions, which are "root spans" when something is executed in a service (for example an http request).
with OTel everything is a span and there is no transaction, so the apm-server has to infer which are spans and which are transactions.
Here you have a transaction that has been created from a database span, and likely outside of any parent span (for example when the application starts), thus the trace might not be available.
Once the application has started and you have real user usage, do you still see such transactions without traces ? Does the issue is the same for all transactions or only specific to this one ?
Thanks for your response Mr. Sylvain,
This issue happens with all the dependencies, http, database, redis.
Yes, all my data is from real user usage (these span are created by real transactions and can be seen in the trace sample UI).
I have checked the data between elastic apm agent and otel agent, it seems that the data of spans from otel agent do not have trace.id field. This might be the root cause.
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.