Skip to content

Commit

Permalink
add new property for session storage fallback selection
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanGaignault committed Dec 13, 2024
1 parent 81c3d74 commit e1bee7f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/cjs/generated/telemetry.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ export declare type TelemetryConfigurationEvent = CommonTelemetryProperties & {
*/
use_secure_session_cookie?: boolean;
/**
* Whether it is allowed to use LocalStorage when cookies are not available
* Configure the storage strategy for sessions.
*/
allow_fallback_to_local_storage?: boolean;
session_storage?: ('cookie' | 'local-storage')[];
/**
* Whether contexts are stored in local storage
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/esm/generated/telemetry.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ export declare type TelemetryConfigurationEvent = CommonTelemetryProperties & {
*/
use_secure_session_cookie?: boolean;
/**
* Whether it is allowed to use LocalStorage when cookies are not available
* Configure the storage strategy for sessions.
*/
allow_fallback_to_local_storage?: boolean;
session_storage?: ('cookie' | 'local-storage')[];
/**
* 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_storage": ["cookie", "local_storage"],
"action_name_attribute": "foo",
"use_allowed_tracing_origins": false,
"default_privacy_level": "mask",
Expand Down
10 changes: 7 additions & 3 deletions schemas/telemetry/configuration-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,13 @@
"type": "boolean",
"description": "Whether a secure session cookie is used"
},
"allow_fallback_to_local_storage": {
"type": "boolean",
"description": "Whether it is allowed to use LocalStorage when cookies are not available"
"session_storage": {
"type": "array",
"items": {
"type": "string",
"enum": ["cookie", "local-storage"]
},
"description": "Configure the storage strategy for sessions."
},
"store_contexts_across_pages": {
"type": "boolean",
Expand Down

0 comments on commit e1bee7f

Please sign in to comment.