question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Java agent not working with Spring Boot 2 Reactive (Netty)

See original GitHub issue

When 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

screen shot 2018-05-07 at 10 47 47 am

No traces here

screen shot 2018-05-07 at 10 47 23 am

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
tylerbensoncommented, Aug 15, 2018

@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!

1reaction
duke-cliffcommented, Aug 13, 2018

@tylerbenson Just verified it’s working properly. 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found