Skip to content
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

Cleanup lettuce instrumentation and add tests #872

Merged
merged 5 commits into from
Jun 8, 2022

Conversation

twcrone
Copy link
Contributor

@twcrone twcrone commented Jun 2, 2022

Provides Java instrumentation for the Lettuce driver for Redis. Instrumentation is being migrated from New Relic Experimental to be included in the product

@twcrone twcrone marked this pull request as ready for review June 2, 2022 21:51
@twcrone twcrone requested review from meiao and jasonjkeller June 2, 2022 21:51
build.gradle Outdated Show resolved Hide resolved
Copy link
Contributor

@jasonjkeller jasonjkeller left a comment

Choose a reason for hiding this comment

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

Left some specific comments but there's also a few general things to address.

All source code files need the New Relic copyright header but modified for 2022.

What’s up with the .cache-tests files being checked in? Can we delete them from this PR?

  • instrumentation/scala-2.12.0/.cache-tests
  • instrumentation/slick-2.12_3.2.0/.cache-tests
  • instrumentation/akka-http-core-10.2.0/.cache-tests

There's some inconsistent formatting throughout, make sure that all files have been formatted using the java-agent-code-style.

@twcrone
Copy link
Contributor Author

twcrone commented Jun 4, 2022

Looks like I have some work. I'll try to get started this weekend in my "copious free time" but might have to pick up first thing Monday.

@twcrone twcrone force-pushed the tcrone/lettuce-instrumentation branch from 33cffb8 to 1ff6734 Compare June 6, 2022 16:23
@twcrone twcrone force-pushed the tcrone/lettuce-instrumentation branch 3 times, most recently from 5de5c4f to bae6a6b Compare June 7, 2022 13:44
@twcrone twcrone requested a review from jasonjkeller June 7, 2022 14:56
@twcrone
Copy link
Contributor Author

twcrone commented Jun 7, 2022

@jasonjkeller I think I've addressed your concerns. I'm wondering if you wanted more in the README.md about Testcontainers? Right now, I think only kafka and lettuce use them for instrumentation tests, so just noted that Docker might be needed to run instrumentation tests with links to Testcontainer documentation and Docker install. Let me know your thoughts!

@jasonjkeller
Copy link
Contributor

@jasonjkeller I think I've addressed your concerns. I'm wondering if you wanted more in the README.md about Testcontainers? Right now, I think only kafka and lettuce use them for instrumentation tests, so just noted that Docker might be needed to run instrumentation tests with links to Testcontainer documentation and Docker install. Let me know your thoughts!

Yea, just making it clear that Docker is a requirement to run all tests is what I was getting at.

Copy link
Contributor

@jasonjkeller jasonjkeller left a comment

Choose a reason for hiding this comment

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

Just make sure that all Java class files (including tests) contain the copyright header. Otherwise looks good! Thanks for cleaning it up!

@twcrone twcrone force-pushed the tcrone/lettuce-instrumentation branch from bae6a6b to 7ae8a34 Compare June 7, 2022 19:33
@twcrone twcrone merged commit c73404b into main Jun 8, 2022
@twcrone twcrone deleted the tcrone/lettuce-instrumentation branch June 8, 2022 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants