-
Notifications
You must be signed in to change notification settings - Fork 319
Datastax Cassandra 4 instrumentation #2156
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
Conversation
| throwable = throwable.getCause(); | ||
| } | ||
| DECORATE.onError(span, throwable); | ||
| span.finish(); |
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.
Should this span be the active span at this time? If so, this lambda wouldn't need to capture here.
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.
It seems unfortunate that we go to such lengths and quite some cost to propagate context into completable futures, when all we really need to do is capture the span in a closure, but we're doing both here, the CompletableFuture instrumentation should be making sure this would be the active span at the time.
...rc/main/java8/datadog/trace/instrumentation/datastax/cassandra/CassandraClientDecorator.java
Outdated
Show resolved
Hide resolved
| public class CassandraClientInstrumentation extends Instrumenter.Default { | ||
|
|
||
| public CassandraClientInstrumentation() { | ||
| super("cassandra"); |
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.
Do we want to add a secondary name to distinguish 3 from 4?
...in/java/datadog/trace/instrumentation/datastax/cassandra/CassandraClientInstrumentation.java
Outdated
Show resolved
Hide resolved
...in/java/datadog/trace/instrumentation/datastax/cassandra/CassandraClientInstrumentation.java
Outdated
Show resolved
Hide resolved
...rc/main/java8/datadog/trace/instrumentation/datastax/cassandra/CassandraClientDecorator.java
Outdated
Show resolved
Hide resolved
adb9c26 to
c93f1c0
Compare
c93f1c0 to
165b840
Compare
Instrumentation for cassandra 4. The large API changes between versions means not much can be salvaged from the cassandra 3 instrumentation other than the test.