-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUM-1187 Add more information into the batch telemetry #1641
RUM-1187 Add more information into the batch telemetry #1641
Conversation
2450355
to
876f439
Compare
Codecov Report
@@ Coverage Diff @@
## develop #1641 +/- ##
===========================================
+ Coverage 83.79% 83.82% +0.03%
===========================================
Files 455 455
Lines 15684 15697 +13
Branches 2333 2336 +3
===========================================
+ Hits 13142 13158 +16
- Misses 1918 1924 +6
+ Partials 624 615 -9
|
cbdb6b4
to
e359fe4
Compare
...oid-core/src/main/kotlin/com/datadog/android/core/internal/metrics/BatchMetricsDispatcher.kt
Outdated
Show resolved
Hide resolved
...oid-core/src/main/kotlin/com/datadog/android/core/internal/metrics/BatchMetricsDispatcher.kt
Show resolved
Hide resolved
e359fe4
to
5790972
Compare
@@ -218,6 +238,15 @@ internal class BatchMetricsDispatcher( | |||
/* The value for the type of the metric.*/ | |||
internal const val BATCH_CLOSED_TYPE_VALUE = "batch closed" | |||
|
|||
/* The value of the tracking consent according with this file origin.*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/* The value of the tracking consent according with this file origin.*/ | |
/* The tracking consent according to the file origin.*/ |
internal const val FILE_NAME = "name" | ||
|
||
/* The thread name from which the current metric was sent.*/ | ||
internal const val THREAD_NAME = "thread" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: are these key names taken from a telemetry rfc doc? If we have flexibility it may be better to have more explicit map keys (e.g. it looks like we're sending a semiambiguous name
in the map, where it might be preferable to send filename
, and to a lesser extent for thread/threadname). wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wanted to use a shorter key for having lighter logs but yeah...3 chars will not kill
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! I've added one suggestions
// endregion | ||
|
||
companion object { | ||
|
||
internal val IS_GRANTED_DIR_REG_EX = Regex("[a-z]+-v[0-9]+") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we move this to the FeatureFileOrchestrator
? At least this way if we update naming convention for the folders we won't forget to update this one as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually this is not good enough :)...need to find a better one. We also have session-replay-v1
or ndk_crash_reports_intermediary-v1
75bd1eb
to
938ab50
Compare
internal const val PENDING_DIR = "%s-pending-v$VERSION" | ||
internal const val PENDING_DIR_SUFFIX = "-pending-v$VERSION" | ||
internal const val PENDING_DIR = "%s$PENDING_DIR_SUFFIX" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems that this change can be reverted
938ab50
to
d64d0d6
Compare
@@ -64,6 +64,10 @@ internal class FeatureFileOrchestrator( | |||
) | |||
|
|||
companion object { | |||
private const val BASE_DIR_NAME_REG_EX = "([a-z]+[-|_])+" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a list of base dire name used? It seems this regex is allowing a lot more than it should (e.g.: abcdef|
)
What does this PR do?
Following the latest discussions regarding the problem with the batch telemetry data for Android SDK we decided to add more information into the related logs:
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)