Skip to content

Conversation

@realark
Copy link
Contributor

@realark realark commented Nov 21, 2017

  • Enhance cassandra integration tests
  • Improve cassandra test overhead
  • Convert the cassandra instrumentation to bytebuddy

@realark realark added the type: enhancement Enhancements and improvements label Nov 21, 2017
@realark realark changed the title Ark/cassandra bytebuddy cassandra bytebuddy Nov 22, 2017
@palazzem palazzem added the tag: do not merge Do not merge changes label Nov 22, 2017
@realark realark force-pushed the ark/cassandra_bytebuddy branch 2 times, most recently from e25d399 to ea503ab Compare November 28, 2017 01:14
@realark realark removed the tag: do not merge Do not merge changes label Nov 28, 2017
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this mean?

@realark realark force-pushed the ark/cassandra_bytebuddy branch from ea503ab to 463cd97 Compare November 28, 2017 17:16
@realark
Copy link
Contributor Author

realark commented Nov 29, 2017

@tylerbenson Anything else you want to add?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you're not checking for the presence of particular classes, this could instrument on versions of the library you might not intend. If you're ok with that, or this is something you want to deal with later, then I'm ok with merging.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I'll add some extra checks for particular classes used by the instrumentation before merging this.

@tylerbenson
Copy link
Contributor

It'd be nice if we could rebase after #159 is merged to see a clean build.

@realark realark force-pushed the ark/cassandra_bytebuddy branch from 463cd97 to 7298b0a Compare November 29, 2017 01:01
tylerbenson and others added 2 commits November 28, 2017 18:34
Now you can run `./gradlew :dd-java-agent:integrations:datastax-cassandra-3.2::scanVersionsReport -PshowClasses` to show you the classes you can use for that version range.
@realark realark merged commit d95d11e into master Nov 29, 2017
@realark realark deleted the ark/cassandra_bytebuddy branch November 29, 2017 17:18
.type(
named("com.datastax.driver.core.Cluster$Manager"),
classLoaderHasClasses(
"com.datastax.driver.core.BoundStatement",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need to list all of these... a subset of classes should be enough. I would also suggest only including classes that are tested with the verifier (and include all of them): https://github.com/DataDog/dd-trace-java/blob/master/dd-java-agent/integrations/datastax-cassandra-3.2/datastax-cassandra-3.2.gradle#L11

@realark realark added this to the 0.2.10 milestone Dec 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement Enhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants