I really wonder ‘java.endorsed.dir’ can cause issue with insight api custom event.
however, transaction with @Trace annotation works fine.
I have couple of warning messages when new relic agent is enabled.
WARN: The ‘java.endorsed.dirs’ system property is set for this jvm. This may cause unexpected behavior.
WARN: given scan urls are empty. set urls in the configuration
- Java-agent version is 4.7.0
- Java 8
With above conditions, my custom event for insight API never worked.
However, when I tested with minimal dependencies (only newrelic-api and newrelic-agent), everything worked fine.
is transaction uses different way to communicate new relic APM api?
Following link is snapshot when custom event was finally worked