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

✨ [RUM-5001] Enforce localStorage usage telemetry #238

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/cjs/generated/telemetry.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,13 @@ export declare type TelemetryConfigurationEvent = CommonTelemetryProperties & {
*/
use_secure_session_cookie?: boolean;
/**
* Whether it is allowed to use LocalStorage when cookies are not available
* Whether it is allowed to use LocalStorage when cookies are not available (deprecated in favor of session_persistence)
*/
allow_fallback_to_local_storage?: boolean;
/**
* Configure the storage strategy for persisting sessions
*/
session_persistence?: 'local-storage' | 'cookie';
/**
* Whether contexts are stored in local storage
*/
Expand Down
6 changes: 5 additions & 1 deletion lib/esm/generated/telemetry.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,13 @@ export declare type TelemetryConfigurationEvent = CommonTelemetryProperties & {
*/
use_secure_session_cookie?: boolean;
/**
* Whether it is allowed to use LocalStorage when cookies are not available
* Whether it is allowed to use LocalStorage when cookies are not available (deprecated in favor of session_persistence)
*/
allow_fallback_to_local_storage?: boolean;
/**
* Configure the storage strategy for persisting sessions
*/
session_persistence?: 'local-storage' | 'cookie';
/**
* Whether contexts are stored in local storage
*/
Expand Down
2 changes: 1 addition & 1 deletion samples/telemetry-events/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"track_long_task": true,
"use_cross_site_session_cookie": false,
"use_secure_session_cookie": true,
"allow_fallback_to_local_storage": true,
"session_persistence": "cookie",
"action_name_attribute": "foo",
"use_allowed_tracing_origins": false,
"default_privacy_level": "mask",
Expand Down
7 changes: 6 additions & 1 deletion schemas/telemetry/configuration-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,12 @@
},
"allow_fallback_to_local_storage": {
"type": "boolean",
"description": "Whether it is allowed to use LocalStorage when cookies are not available"
"description": "Whether it is allowed to use LocalStorage when cookies are not available (deprecated in favor of session_persistence)"
},
"session_persistence": {
"type": "string",
"enum": ["local-storage", "cookie"],
"description": "Configure the storage strategy for persisting sessions"
},
"store_contexts_across_pages": {
"type": "boolean",
Expand Down
Loading