Skip to content

Conversation

@realark
Copy link
Contributor

@realark realark commented Nov 14, 2017

  • Convert Mongo Instrumentation to Bytebuddy
  • Add support for the mongo async driver
  • Add extensive integration testing by running a local mongod
  • Add relevant classes and versions to versionScan plugin to verify the correct driver versions are instrumented.

@realark realark added the type: enhancement Enhancements and improvements label Nov 14, 2017
@realark realark force-pushed the ark/mongo_bytebuddy branch 2 times, most recently from d7e1d45 to ed8dc1c Compare November 14, 2017 22:46
Copy link
Contributor

@tylerbenson tylerbenson left a comment

Choose a reason for hiding this comment

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

In addition to the rename, I'd suggest also trying to test this with a spring boot project as an executable jar. That is the way most customers are using it and I've found a good way to test the edge cases for classloader issues.

Copy link
Contributor

Choose a reason for hiding this comment

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

Lets update this project name to include the version it is compatible with... (mongo-3?)

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 call

@realark realark changed the title Convert Mongo instrumentation to ByteBuddy Mongo Bytebuddy and Mongo Async Nov 20, 2017
@realark realark force-pushed the ark/mongo_bytebuddy branch from c3eaa39 to e37c0f5 Compare November 27, 2017 16:40
@realark realark force-pushed the ark/mongo_bytebuddy branch from e37c0f5 to 47b1eec Compare November 27, 2017 17:20
private static final ListWriter writer = new ListWriter();
private static final DDTracer tracer = new DDTracer(writer);

public static void startLocalMongo() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we could take advantage of actual Cassandra and mongo instances running in CI… rather than having to start them up on the fly. (obviously using this as a fallback for non-CI execution)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For mongo, I don't see a substantial performance hit running a local instance.

@realark realark merged commit e7869cd into master Nov 28, 2017
@realark realark deleted the ark/mongo_bytebuddy branch November 28, 2017 01:04
testCompile group: 'cglib', name: 'cglib-nodep', version: '3.2.5'

testCompile 'org.openjdk.jmh:jmh-core:1.19'
testCompile 'org.openjdk.jmh:jmh-generator-annprocess:1.19'
Copy link
Contributor

Choose a reason for hiding this comment

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

Do these belong here?

Copy link
Contributor

@tylerbenson tylerbenson left a comment

Choose a reason for hiding this comment

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

Looks good. Retroactive approval.

@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.

3 participants