newrelic / newrelic-android-agent

SDK to enable instrumentation of Android mobile apps in New Relic
Apache License 2.0
13 stars 12 forks source link

Android Release v7.5.1 #260

Closed ywang-nr closed 1 month ago

ywang-nr commented 1 month ago

Ticket: https://new-relic.atlassian.net/browse/NR-294329

What's changed:

  1. Clear supportability metics only when onHarvestComplete
  2. Clear metrics only when on HarvestComplete
  3. Add sessionId to logging
  4. Update unit tests

Other housekeeping changes:

  1. Refactor AgentNDKListener
  2. Metric validation cleanup
codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 77.11268% with 65 lines in your changes missing coverage. Please review.

Project coverage is 57.37%. Comparing base (be50b4b) to head (19088e6).

Files Patch % Lines
...om/newrelic/agent/android/ndk/NativeReporting.java 62.66% 20 Missing and 8 partials :warning:
...java/com/newrelic/agent/android/metric/Metric.java 91.66% 1 Missing and 6 partials :warning:
...y/com/newrelic/agent/android/VariantAdapter.groovy 0.00% 4 Missing :warning:
...om/newrelic/agent/android/agp7/AGP70Adapter.groovy 0.00% 4 Missing :warning:
...easurement/consumer/MetricMeasurementConsumer.java 80.00% 2 Missing and 1 partial :warning:
...ent/consumer/SummaryMetricMeasurementConsumer.java 88.46% 0 Missing and 3 partials :warning:
.../java/com/newrelic/agent/android/Measurements.java 86.66% 1 Missing and 1 partial :warning:
...com/newrelic/agent/android/metric/MetricStore.java 66.66% 0 Missing and 2 partials :warning:
.../com/newrelic/agent/android/stats/StatsEngine.java 60.00% 1 Missing and 1 partial :warning:
...ain/java/com/newrelic/agent/android/TaskQueue.java 85.71% 0 Missing and 1 partial :warning:
... and 9 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #260 +/- ## ============================================ + Coverage 56.26% 57.37% +1.10% - Complexity 3297 3346 +49 ============================================ Files 324 325 +1 Lines 16611 16631 +20 Branches 1828 1823 -5 ============================================ + Hits 9347 9542 +195 + Misses 6253 6073 -180 - Partials 1011 1016 +5 ```

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