-
Notifications
You must be signed in to change notification settings - Fork 828
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
Java autoinstrumentation agent and MongoDB double traces #6397
Comments
Hey @dzydzany , |
Ah sorry, Using com/mongodb/client/MongoCollection.java
and applying filter find by id:
I am terribly sorry that I cannot provide you with a complete example of the code, but this should be a simple enough query for testing. But, practically any MongoDB query produces double spans. Thank you! |
there are lots of mongodb instrumentation tests, and they don't exhibit this issue, so there may be something subtle in the way you are using mongodb that the tests do not account for, which is why repros are really helpful |
This happens because your application includes both the older |
@laurit Thank you. We are inspecting to see if this is the case. And will let you know as soon as we test it out. |
We are noticing similar issue and depending on the result set, the Spans seem to explode. We are using |
I just want to confirm that the issue looks resolved. I have tested with opentelemetry-javaagent-1.17.0-20220813.012152-45.jar |
Discussed in #6384
Originally posted by dzydzany July 29, 2022
Hello,
I am seeing double traces of MongoDB calls with different span ids and different execution times at one of our services. I am attaching the screenshot here. I am using version 1.16.0, and also I've tested with 1.15.0 These are configuration switches:
"-Dotel.exporter.otlp.endpoint=http://otel-collector:4317",
"-Dotel.service.name=backend",
"-javaagent:opentelemetry-javaagent.jar"
You can also notice for the other callbacks that all are double, just not expanded in the screenshot.
These are the versions of Spring and MongoDB connector:
These are the code samples of connector
We are using MongoDB 4.4 in cluster mode.
Thank you.
The text was updated successfully, but these errors were encountered: