newrelic / newrelic-java-agent

The New Relic Java agent
Apache License 2.0
192 stars 140 forks source link

Pekko http #1850

Closed kanderson250 closed 4 weeks ago

kanderson250 commented 1 month ago

Resolves #1816

This introduces instrumentation for Apache Pekko HTTP via the pekko-http and pekko-http-core libraries.

This instrumentation supports Scala 2.13, the default Scala version for Pekko.

The instrumentation is nearly a direct lift of the existing akka-http-2.13_10.1.8 and akka-http-core-2.13_10.2.0 libraries. One small instrumentation change has been made in org.apache.pekko.http.scaladsl.server.PekkoExecutionDirectives, where we now instrument createAsyncHandler instead of seal. This was necessary to avoid issues with implicit conversions that sidestepped the previous instrumentation for seal.

AITs have also been added (to be merged later), the test app and the tests

codecov-commenter commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 70.87%. Comparing base (dd32a0f) to head (20d23eb). Report is 42 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1850 +/- ## ============================================ - Coverage 70.90% 70.87% -0.03% + Complexity 9977 9973 -4 ============================================ Files 829 829 Lines 39984 39985 +1 Branches 6058 6058 ============================================ - Hits 28349 28340 -9 - Misses 8912 8915 +3 - Partials 2723 2730 +7 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.