-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
W3C Distributed tracing not working under java:3.0.1-BETA.2 #1428
Comments
Looking at https://docs.microsoft.com/en-us/azure/azure-monitor/app/correlation#java-30-agent it states
but that doesn't appear to be the case for our applications.
and it all works successfully under the 2.6.2 agent. |
Hi @petergphillips! This should be working. Can you post a repro that I can use to debug the issue? |
Sure, I'll have a look at replicating and creating a repo. Did notice just now that we are getting
on startup. We're using netty 4.1.55 at present which has that deprecated constructor removed so presumably that will be the reason the instrumentation isn't working? |
ah, you can ignore that warning, it just means that the netty-4.0 instrumentation was not applied, which is good, since you are using netty-4.1, and we have separate instrumentation for netty-4.1 (I just fixed that warning message a couple days ago in #1427) |
Project is https://github.com/ministryofjustice/prison-estate.git. Need Java 11. Replace with your key for app insights. Demonstrating working under agent 2.6.2.
Similarly not working under 3.0.1:
In app insights
should then show the curl requests, but only 2.6.2 requests are shown - 3.0.1 requests have generated their own operation id. |
Thanks for the repro!! It looks like I broke propagation when using We are planning to make 3.0.1 release this week, so very grateful for you finding this, we will fix before releasing. In the meantime, you can either use 3.0.0, or specify |
Thanks @trask. I've had a go specifying the connection string in the json file as
and I can confirm that I can now see the |
Just to let you know that my initial effort to reproduce has failed, in that the |
We've just tried switching from the 2.6.2 agent to the 3.0 agent.
In the 2.6.2 AI-Agent.xml file we used to specify
in order to enable w3c distributed tracing.
In the 3.0 applicationinsights.json I can't find the equivalent configuration, but https://docs.microsoft.com/en-us/azure/azure-monitor/app/java-in-process-agent suggests that distributed trace propagation is automatically supported.
However looking at application insights I can see that the distributed tracing isn't working. Our node app calls to our kotlin spring boot app and would expect that the
operation_Id
is then kept the same e.g.would show all the requests across all our applications for that initial user request.
This works using the 2.6.2 agent, but has now stopped working in 3.0 and the requests to our kotlin application are given a new
operation_Id
each time. Note that this affects both incoming traffic and also outgoing traffic.The text was updated successfully, but these errors were encountered: