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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

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

4 participants