apm-agent-java icon indicating copy to clipboard operation
apm-agent-java copied to clipboard

No transactional data with a basic Netty server

Open nimit95 opened this issue 3 years ago • 1 comments

I have enabled the enable_experimental_instrumentations flag. Using the 1.28.3 jar version. I don't see any transactional log for any HTTP request.

The agent is showing JVM details but even the metrics like latency, throughput etc.

Is netty not compatible as an HTTP server with APM?

If not what are my option? Do I have to create a new Transaction for each of the requests on the server?

nimit95 avatar Dec 28 '21 12:12 nimit95

Hi @nimit95 ,

We do not have an instrumentation plugin for Netty HTTP server yet, and it's not currently part of our short/mid-term roadmap.

However, you should be able to use the Public API to manually create transactions. It's definitely not optimal and might be challenging as most of Netty code is asynchronous and thus context-propagation can be tricky. I'm not very familiar with Netty codebase, but if there is any concept similar to Servlet Filters it would be a good start to create, start and end transactions created for each HTTP request/response.

SylvainJuge avatar Jan 05 '22 16:01 SylvainJuge