-
Notifications
You must be signed in to change notification settings - Fork 873
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
OpenTelemetry JDBC instrumentation library #3367
Conversation
This reverts commit e3df35b
Thanks @donbeave
Yup nothing in that module should have
Let's avoid adding any new features, we'd probably want to go through opentelemetry specification for this if we want to
Sounds good (@trask et al maybe we should rename all our instrumentation names that currently include javaagent, even if we don't have library instrumentation for them yet) |
@marcingrzejszczak @anuraaga please let me know if anything else needs to be improved or fixed. Btw, there are two build steps are failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just found one point about the driver version we report which I think is blocking, but other then that looks great
...on/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriver.java
Outdated
Show resolved
Hide resolved
...on/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriver.java
Outdated
Show resolved
Hide resolved
...on/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriver.java
Show resolved
Hide resolved
👍 I opened #3417 to track/fix the muzzle failure. |
…strumentation/jdbc/OpenTelemetryDriver.java Co-authored-by: Anuraag Agrawal <[email protected]>
…strumentation/jdbc/OpenTelemetryDriver.java Co-authored-by: Anuraag Agrawal <[email protected]>
...on/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/OpenTelemetryDriver.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
…nstrumentation into donbeave/main
@anuraaga Got it! Thank you! |
thanks @donbeave! this is a great addition! ❤️ |
Hello!
This is the first preview of JDBC instrumentation as a library, which started from this discussion: #3309. It's not the final implementation yet, there are not any tests and documentation at the moment. I just want to confirm I'm going in the right direction. Most of this work is based on the code provided by https://github.com/opentracing-contrib/java-jdbc and utilizes the current JDBC javaagent implementation API classes, that's why I have moved them to the
library
module.I have few questions here.
library
module? My suggestion renameio.opentelemetry.javaagent.instrumentation.jdbc
toio.opentelemetry.instrumentation.jdbc
.Slow Query
andFast Query
from the original OpenTracing Instrumentation for JDBC. Do I need to do it here or not? It looks like for me, if port this functionality, it must be ported to javaagent implementation as well. If so I think it will be better to useio.opentelemetry.instrumentation.api.config.Config
to configure these features.otel.library.name
isio.opentelemetry.javaagent.jdbc
. Maybe it's time to dropjavaagent
prefix and rename it toio.opentelemetry.jdbc
.Please let me know if anything needs to be changed or improved here.