microsoft / ApplicationInsights-Java

Application Insights for Java
http://aka.ms/application-insights
Other
295 stars 198 forks source link

Java agent to support capturing telemetry from WSO2 EI 6.5 and WSO2 API Gateway products #1654

Open glxorlando opened 3 years ago

glxorlando commented 3 years ago

Java agent for Application Insights seem not to capture all telemetry from WSO2 Enterprise Integrator (tested in 6.5 version) and WSO2 API Gateway (tested in 2.2.0 version). For those WSO2 products, Azure Application Insights is able to show telemetry within "dependencies view" only, but not within "operations view".

Is there any way to solve this issue?

glxorlando commented 3 years ago

Tried to define custom Telemetry Processor based on regular expressions to force java agent for Application Insights to trace all the calls made to WSO2 exposed web services, but it was not effective.

zoomingrocket commented 2 years ago

@glxorlando - Explore Custom Instrumentation Hook if you know the entry package.method for WSO2, this will help you start capturing proper spans Look at #2048 for more details and it available with v3.1.1 GA agent @trask - FYI, just suggesting a potential alternate since most middleware COTs have an entry wrapper method

zoomingrocket commented 2 years ago

@glxorlando - Reading this article https://medium.com/@raj10x/monitor-wso2-products-using-appdynamics-8faf72e83a7, for WSO2 Custom POJO entry point is “org.apache.synapse.core.axis2.SynapseMessageReceive#receive()”