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

fix slick instrumentation on scala 2.13 #1103

Merged
merged 1 commit into from
Dec 16, 2022

Conversation

smiklos
Copy link
Contributor

@smiklos smiklos commented Dec 14, 2022

Overview

Describe the changes present in the pull request

Since agent version 7.9, Slick (and possibly other) modules stopped working using scala 2.13.

While I found what causes the issue as outlined in the linked issue, I have no time to come up with a fix other than avoiding the problematic code path by marking the runnable a var such that the FinalTraitTransformer doesn't pick up NewRelicRunnable and therefor skips that transformation. Tested this locally and it seems to fix the problem , allowing us to use the agent while a real fix can be developed.

Related Github Issue

Issue

Testing

Apart from the existing (and ignored?) tests, I did run the agent built from this branch and verified that the slick instrumentation works.

Checks

[ x] Are your contributions backwards compatible with relevant frameworks and APIs?
[ ] Does your code contain any breaking changes? Please describe.
[ ] Does your code introduce any new dependencies? Please describe.

@kford-newrelic kford-newrelic added the on-roadmap Issue has been added to our product roadmap and will be worked in the coming quarter label Dec 16, 2022
Copy link
Contributor

@tbradellis tbradellis left a comment

Choose a reason for hiding this comment

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

Thanks for this PR!
lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
on-roadmap Issue has been added to our product roadmap and will be worked in the coming quarter
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants