DataDog / dd-sdk-android

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

RUM-4358: Log warning about tag modification only once #2017

Closed 0xnm closed 4 months ago

0xnm commented 4 months ago

What does this PR do?

This PR addresses issue #1018: with SDK v2 functionality we can now log a particular message only once. This is useful to avoid logcat spamming.

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.60%. Comparing base (2adb85c) to head (be760da).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## release/2.9.0 #2017 +/- ## ================================================= - Coverage 83.92% 83.60% -0.32% ================================================= Files 488 488 Lines 17781 17754 -27 Branches 2667 2665 -2 ================================================= - Hits 14922 14842 -80 - Misses 2154 2190 +36 - Partials 705 722 +17 ``` | [Files](https://app.codecov.io/gh/DataDog/dd-sdk-android/pull/2017?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog) | Coverage Δ | | |---|---|---| | [...android/core/constraints/DatadogDataConstraints.kt](https://app.codecov.io/gh/DataDog/dd-sdk-android/pull/2017?src=pr&el=tree&filepath=dd-sdk-android-core%2Fsrc%2Fmain%2Fkotlin%2Fcom%2Fdatadog%2Fandroid%2Fcore%2Fconstraints%2FDatadogDataConstraints.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog#diff-ZGQtc2RrLWFuZHJvaWQtY29yZS9zcmMvbWFpbi9rb3RsaW4vY29tL2RhdGFkb2cvYW5kcm9pZC9jb3JlL2NvbnN0cmFpbnRzL0RhdGFkb2dEYXRhQ29uc3RyYWludHMua3Q=) | `91.84% <100.00%> (+0.08%)` | :arrow_up: | ... and [24 files with indirect coverage changes](https://app.codecov.io/gh/DataDog/dd-sdk-android/pull/2017/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DataDog)