Skip to content
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

RUMM-1001 Handle Custom Timings #474

Merged
merged 1 commit into from
Jan 22, 2021
Merged

Conversation

xgouchet
Copy link
Member

What does this PR do?

Follow up of #473 : refactor the way we persist the customTimings using the generated fields in the ViewEvent.

@xgouchet xgouchet self-assigned this Jan 20, 2021
@xgouchet xgouchet requested a review from a team as a code owner January 20, 2021 10:13
@xgouchet xgouchet added the size-large This PR is large sized label Jan 20, 2021
@xgouchet xgouchet force-pushed the xgouchet/RUMM-1001/custom_timings branch from 63ffc5b to 1383877 Compare January 20, 2021 20:32
@xgouchet xgouchet added size-medium This PR is medium sized and removed size-large This PR is large sized labels Jan 20, 2021
@codecov-io
Copy link

Codecov Report

Merging #474 (1383877) into master (5ecdfeb) will decrease coverage by 0.09%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master     #474      +/-   ##
============================================
- Coverage     90.15%   90.06%   -0.09%     
+ Complexity     1359     1357       -2     
============================================
  Files           160      160              
  Lines          4641     4619      -22     
  Branches        518      517       -1     
============================================
- Hits           4184     4160      -24     
- Misses          286      290       +4     
+ Partials        171      169       -2     
Impacted Files Coverage Δ Complexity Δ
...id/rum/internal/domain/event/RumEventSerializer.kt 97.73% <ø> (-0.35%) 6.00 <0.00> (-1.00)
...adog/android/rum/internal/domain/event/RumEvent.kt 100.00% <100.00%> (ø) 4.00 <1.00> (-1.00)
.../rum/internal/domain/event/RumEventDeserializer.kt 100.00% <100.00%> (ø) 12.00 <3.00> (-4.00)
.../android/rum/internal/domain/scope/RumViewScope.kt 96.08% <100.00%> (+0.06%) 65.00 <0.00> (+2.00)
...android/rum/internal/ndk/DatadogNdkCrashHandler.kt 82.81% <100.00%> (+0.64%) 25.00 <0.00> (+1.00)
...internal/tracking/JetpackViewAttributesProvider.kt 73.68% <0.00%> (-15.79%) 8.00% <0.00%> (-1.00%)
.../android/tracing/internal/domain/SpanSerializer.kt 84.34% <0.00%> (-4.82%) 21.00% <0.00%> (-2.00%)
...l/net/info/BroadcastReceiverNetworkInfoProvider.kt 80.00% <0.00%> (-1.05%) 27.00% <0.00%> (-1.00%)
...lin/com/datadog/android/rum/internal/RumFeature.kt 100.00% <0.00%> (ø) 14.00% <0.00%> (ø%)
...tadog/android/log/internal/domain/LogSerializer.kt 91.43% <0.00%> (ø) 28.00% <0.00%> (ø%)
... and 5 more

@@ -102,9 +91,8 @@ internal class RumEventSerializer(

internal const val GLOBAL_ATTRIBUTE_PREFIX: String = "context"
internal const val USER_ATTRIBUTE_PREFIX: String = "$GLOBAL_ATTRIBUTE_PREFIX.usr"
internal const val VIEW_CUSTOM_TIMINGS_ATTRIBUTE_PREFIX: String = "view.custom_timings"
// internal const val VIEW_CUSTOM_TIMINGS_ATTRIBUTE_PREFIX: String = "view.custom_timings"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think you forgot to remove this

@xgouchet xgouchet force-pushed the xgouchet/RUMM-1001/custom_timings branch from 1383877 to 4573aa4 Compare January 21, 2021 08:11
@xgouchet xgouchet requested a review from mariusc83 January 21, 2021 08:11
@xgouchet xgouchet force-pushed the xgouchet/RUMM-1001/custom_timings branch from 4573aa4 to d725cb6 Compare January 22, 2021 11:12
@xgouchet xgouchet merged commit 002fe20 into master Jan 22, 2021
@xgouchet xgouchet deleted the xgouchet/RUMM-1001/custom_timings branch January 22, 2021 12:32
@xgouchet xgouchet added this to the 1.8.0 milestone May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size-medium This PR is medium sized
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants