Skip to content

Conversation

@dhilpipre
Copy link
Collaborator

@dhilpipre dhilpipre commented Nov 14, 2025

…Continuation

There is an error being generated by the Coroutines instrumentation where it throws an error because the instrumentation tries to implement the CancellableCotinuation interface and Coroutines disallows this.
Workaround is to disable the reporting of calls to the delay function. It can be configured in newrelic.yml

  coroutines:
    delayed:
      enabled: false

This code removes the class and references to it so that the error no longer is generated.

Resolves: #2581

@codecov-commenter
Copy link

codecov-commenter commented Nov 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.27%. Comparing base (ac3b887) to head (56e2c69).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2582      +/-   ##
============================================
- Coverage     70.30%   70.27%   -0.03%     
+ Complexity    10118    10113       -5     
============================================
  Files           855      855              
  Lines         41108    41108              
  Branches       6230     6230              
============================================
- Hits          28901    28889      -12     
- Misses         9390     9397       +7     
- Partials       2817     2822       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kanderson250
Copy link
Contributor

@dhilpipre , are you waiting on anything to merge this PR?

@dhilpipre
Copy link
Collaborator Author

@kanderson250 no, it is good to go. Just need someone to push it since I don't have permissions to do so

@jtduffy jtduffy merged commit 48fdef8 into main Dec 12, 2025
222 of 226 checks passed
@github-project-automation github-project-automation bot moved this from Triage to Code Complete/Done in Java Engineering Board Dec 12, 2025
@jtduffy jtduffy deleted the coroutine-cancelable-fix branch December 12, 2025 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Code Complete/Done

Development

Successfully merging this pull request may close these issues.

UnsupportedOperationException: third-party implementation of CancellableContinuation when using Kotlin coroutines with New Relic Java agent

5 participants