[APM] Fallback for missing transaction.id
in spans when using OTEL
#131050
Labels
apm:opentelemetry
APM UI - OTEL Work
apm:test-plan-done
Pull request that was successfully tested during the test plan
bug
Fixes for quality problems that affect the customer experience
Team:APM
All issues that need APM UI Team support
v8.4.0
Kibana version: 8.2
Elasticsearch version: 8.2
Steps to reproduce:
view Error
buttonAny additional context:
When using OTEL (not sure if true for all OTEL Agents, I was using Java), there is a limitation that apm-server can't collect the
transaction.id
for a span. Thetrace.id
is collected properly.The UI manages to properly visualize all of this data, however, the missing transaction.id causes problems when clicking on the relate errors, as Kibana now looks for
trace.id : "c73283b7e7128e4216d520bb6ca0c47f" and transaction.id : "undefined"
. It usually gets this transaction.id from the span that the error belonged to.I see two possible fixes for this, but I have limited understand of the current code:
transaction.id
of the likely parent transaction, and then use that to filtertransaction.id
field if it's empty, e.g. instead of searching fortrace.id : "c73283b7e7128e4216d520bb6ca0c47f" and transaction.id : "undefined"
just look fortrace.id : "c73283b7e7128e4216d520bb6ca0c47f"
The text was updated successfully, but these errors were encountered: