Java agent not working with Spring Boot 2 Reactive (Netty)
See original GitHub issueWhen adding the javaagent to the JVM args and running a spring boot 2 application using
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
</dependency>
The following is logged as the agent is started, but running requests against endpoints doesn’t produce any traces in the UI.
app_1 | Picked up JAVA_TOOL_OPTIONS: -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:+UseCompressedOops -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Djboss.as.management.blocking.timeout=700 -Dsun.rmi.dgc.server.gcInterval=3600000 -XX:-UseParallelOldGC
app_1 | [main] INFO datadog.trace.agent.ot.DDTraceOTInfo - dd-trace - version: 0.6.0~0ca84e8
app_1 | [main] INFO datadog.trace.agent.ot.DDTracer - New instance: DDTracer-76494737{ service-name=hello-world, writer=DDAgentWriter { api=DDApi { tracesEndpoint=http://localhost:8126/v0.4/traces } }, sampler=AllSampler { sample=true }, tags={}}
app_1 | [main] INFO datadog.trace.api.DDTraceApiInfo - dd-trace-api - version: unknown
app_1 | [main] INFO datadog.trace.agent.tooling.DDJavaAgentInfo - dd-java-agent - version: 0.6.0~0ca84e8
Agent Up
No traces here
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
[Java] Agent not working on WebFlux - New Relic Explorers Hub
When Instrumenting a Java Spring Webflux Application the following error occurs and the application fails. Java Agent : 7.9.0
Read more >Spring Reactive Test case fails to start the Netty Server
I have spring test-case as shown below when I run it is not starting the Netty server and provides following exception.
Read more >Reactor Netty Reference Guide
This section provides a brief overview of Reactor Netty reference documentation. You do not need to read this guide in a linear fashion....
Read more >Chapter 2. Developing reactive applications using Spring Boot ...
Chapter 2. ... While WebFlux is designed to work primarily with Reactor Netty, it can also operate ... java -jar target/vertx-spring-boot-sample-http.jar.
Read more >Spring Boot Reference Documentation
If you find problems with the docs or if you want to improve them, ... Reactive Web Applications: Spring Webflux, Embedded Servlet Containers....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@duke-cliff Would you be able to create a separate issue for this? It would also help if you could provide a small sample app that demonstrates the problem. Thanks!
@tylerbenson Just verified it’s working properly. 👍