Eyan thank you. I remove nested transaction and problem still occurs.
I notice that when I go to errors list I see something like that:
Error with message "java.lang.IllegalThreadStateException: Moj blad!" has 2 Occurrences.
Same Throwable object are registered twice during instrumentation by different plugins (some time more). In my situation Throwable are registered by my plugin in code
ErrorCapture errorCapture = tracer.captureException(t, span , null);
After that is registered second time by logging plugin from package"co.elastic.apm.agent.error.logging.*".
co.elastic.apm.agent.error.logging.Slf4jLoggingInstrumentation or co.elastic.apm.agent.error.logging.Log4jLoggingInstrumentation.
Transaction timeline show metadata error from logging instrumentation. In kibana I can't find way to show my error details. When I click on message I see information from single error.
Do you have any suggestion thow to get to my error or how to register error to make it visible on timeline?
