-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔉 [RUM-253] adjust heavy customer data warning when compression is en…
…abled (#2529) * ♻️ [RUM-253] refactor customer data tracking Use a single component used by both feature flags and context manager. * ♻️ [RUM-253] refactor tests No need to test for customer data warning in every spec, move related tests to `trackCustomerData` spec. * ♻️ [RUM-253] expose customerDataTracker in ContextManager This allows to reuse the same customerDataTracker in the "stored context manager" logic, so we don't show the same warning twice. It simplifies a bit the code. * 🔊 [RUM-253] adjust warning limit when compression is enabled Have a bigger limit when the compression is enabled. Because the compression "status" is only known at init, we need to wait until before showing the warning. * 👌 rename module * 👌 rename `maybeWarn` to something more explicit * 👌 adjust documentation URL * 👌 use a "customer data tracker manager" * 👌 use global limit for all contexts * ♻️ do not store data type in trackers * ♻️ simplify customer data telemetry
- Loading branch information
1 parent
cfcc00e
commit 0f7ea73
Showing
26 changed files
with
605 additions
and
369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,4 @@ export const enum CustomerDataType { | |
FeatureFlag, | ||
User, | ||
GlobalContext, | ||
LoggerContext, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.