diff --git a/lib/cjs/generated/telemetry.d.ts b/lib/cjs/generated/telemetry.d.ts index 7d9d8b5..0226aa2 100644 --- a/lib/cjs/generated/telemetry.d.ts +++ b/lib/cjs/generated/telemetry.d.ts @@ -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 */ diff --git a/lib/esm/generated/telemetry.d.ts b/lib/esm/generated/telemetry.d.ts index 7d9d8b5..0226aa2 100644 --- a/lib/esm/generated/telemetry.d.ts +++ b/lib/esm/generated/telemetry.d.ts @@ -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 */ diff --git a/samples/telemetry-events/configuration.json b/samples/telemetry-events/configuration.json index 2929e16..3cfb6fe 100644 --- a/samples/telemetry-events/configuration.json +++ b/samples/telemetry-events/configuration.json @@ -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", diff --git a/schemas/telemetry/configuration-schema.json b/schemas/telemetry/configuration-schema.json index 37ea316..40fcdcc 100644 --- a/schemas/telemetry/configuration-schema.json +++ b/schemas/telemetry/configuration-schema.json @@ -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",