Closed yunapotamus closed 3 years ago
These fields look fine.
If you want more info on the initial load use case, it's fine to log a special diagnostic record around the initial load (with extra IDs and stuff).
I pushed back on the previous approach because it was a bunch of info that seemed redundant. If it's just initial page load focused, that's fine.
Gotcha. I think I'll hold off on the initial record with the upcoming IDs for now, since this should hopefully contain the same information but in a more usable format.
Background
We've encountered several instances where the
logUserID
andviewID
found in delivery RPCs don't match up with any logged client events. This is more common forviewID
. This could be caused by the mobile client failing to send some events, but we have no way of knowing if this is the case in prod right now.Proposal
To help diagnose where we're dropping ancestor IDs, we can log the history of these IDs from the client as part of the diagnostics we're sending through. This is intended as a short-term diagnostic tool only, and should be turned off when we get enough information to address the underlying issue.
Schema
We can log the latest 10 (configurable) views as a window.
This would give more context around each view and allow us to figure out which views might not be related to the RPC. We'd have the timestamps of the potentially missed views.
Mobile client
Add the following parameter to
ClientConfig
:If this parameter is >0, then the client will maintain and send the
AncestorIdHistory
message insideMobileDiagnostics
onLogRequest
.