RUM-7797 Anonymous RUM Identifier#2487
Conversation
|
Running from the root of the project will help you to overcome detekt problems. |
f95e57a to
a141ebe
Compare
|
Relates to DataDog/dd-sdk-ios#2172 |
572f49b to
4cc97fb
Compare
f5e3e1e to
eb5cd6e
Compare
eb5cd6e to
39fa7b8
Compare
0xnm
left a comment
There was a problem hiding this comment.
I left some comments, but nothing blocking for me.
satween
left a comment
There was a problem hiding this comment.
Check my comment above please, bisides that LGTM
|
/merge |
Devflow running:
|
9d1877f
What and why?
Adds capability of tracking anonymous id (enabled by default). This data allows linking sessions coming from the same device.
How?
Following proposal from this RFC (internal) it reuses data store mechanism, and based on configuration it generates and reuses stored identifier.
This identifier is attached to
UserInfoobject (schema already updated), which is enriching other SDK events.Motivation
This extra property adds ability to link sessions coming from the same device.
Additional Notes
The identifier is read asynchronously from a file, which means RUM events created immediately after calling
RUM.enable()will not include it. However, this is not an issue since theanonymous_idbelongs to the Session entity. As long as theanonymous_idis present in at least in one event, it is sufficient for linking.Here's corresponding PR for iOS:
DataDog/dd-sdk-ios#2172
Review checklist (to be filled by reviewers)