Describe the bug
APM Timeline starts with DB spans and shows them at top, but as per the application execution Java spans should be shown first and then DB spans.
Steps to reproduce
Attached screenshots of our application.
In the below screenshot the transaction starts with DB Span:

Below screenshot shows Java Spans after DB spans:

Expected behavior
Various spans hierarchy (like JAVA, DB etc) should be as per the application execution flow in the APM timeline.
Debug logs
Click to expand
replace this line with your debug logs
Describe the bug
APM Timeline starts with DB spans and shows them at top, but as per the application execution Java spans should be shown first and then DB spans.
Steps to reproduce
Attached screenshots of our application.
In the below screenshot the transaction starts with DB Span:
Below screenshot shows Java Spans after DB spans:
Expected behavior
Various spans hierarchy (like JAVA, DB etc) should be as per the application execution flow in the APM timeline.
Debug logs
Click to expand