DataDog / dd-sdk-android

Datadog SDK for Android (Compatible with Kotlin and Java)
Apache License 2.0
150 stars 59 forks source link

Limit total telemetry events sent per session #2061

Closed jonathanmos closed 4 months ago

jonathanmos commented 4 months ago

What does this PR do?

Limit the total number of telemetry events sent per session

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

Review checklist (to be filled by reviewers)

codecov-commenter commented 4 months ago

Codecov Report

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

Project coverage is 83.26%. Comparing base (a6f7ed2) to head (45c2ff7). Report is 2 commits behind head on release/2.10.0.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## release/2.10.0 #2061 +/- ## ================================================== - Coverage 83.47% 83.26% -0.21% ================================================== Files 494 494 Lines 17735 17724 -11 Branches 2686 2681 -5 ================================================== - Hits 14803 14757 -46 - Misses 2212 2235 +23 - Partials 720 732 +12 ``` | [Files](https://app.codecov.io/gh/DataDog/dd-sdk-android/pull/2061?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | Coverage Δ | | |---|---|---| | [...ndroid/telemetry/internal/TelemetryEventHandler.kt](https://app.codecov.io/gh/DataDog/dd-sdk-android/pull/2061?src=pr&el=tree&filepath=features%2Fdd-sdk-android-rum%2Fsrc%2Fmain%2Fkotlin%2Fcom%2Fdatadog%2Fandroid%2Ftelemetry%2Finternal%2FTelemetryEventHandler.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog#diff-ZmVhdHVyZXMvZGQtc2RrLWFuZHJvaWQtcnVtL3NyYy9tYWluL2tvdGxpbi9jb20vZGF0YWRvZy9hbmRyb2lkL3RlbGVtZXRyeS9pbnRlcm5hbC9UZWxlbWV0cnlFdmVudEhhbmRsZXIua3Q=) | `81.35% <100.00%> (-1.90%)` | :arrow_down: | ... and [26 files with indirect coverage changes](https://app.codecov.io/gh/DataDog/dd-sdk-android/pull/2061/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog)