From 8bcc0bd7426ee7db09a4b5c8ba5b9e17e8db59a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sima=CC=83o=20Seic=CC=A7a?= Date: Mon, 2 Dec 2024 17:47:01 +0000 Subject: [PATCH] RUM-6850: [iOS] Add "Effective Sample Rate" to telemetry events --- lib/cjs/generated/telemetry.d.ts | 4 ++++ lib/esm/generated/telemetry.d.ts | 4 ++++ schemas/telemetry/_common-schema.json | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/lib/cjs/generated/telemetry.d.ts b/lib/cjs/generated/telemetry.d.ts index bd950a6..cd8af28 100644 --- a/lib/cjs/generated/telemetry.d.ts +++ b/lib/cjs/generated/telemetry.d.ts @@ -486,6 +486,10 @@ export interface CommonTelemetryProperties { id: string; [k: string]: unknown; }; + /** + * The actual percentage of telemetry usage per event + */ + effective_sample_rate?: number; /** * Enabled experimental features */ diff --git a/lib/esm/generated/telemetry.d.ts b/lib/esm/generated/telemetry.d.ts index bd950a6..cd8af28 100644 --- a/lib/esm/generated/telemetry.d.ts +++ b/lib/esm/generated/telemetry.d.ts @@ -486,6 +486,10 @@ export interface CommonTelemetryProperties { id: string; [k: string]: unknown; }; + /** + * The actual percentage of telemetry usage per event + */ + effective_sample_rate?: number; /** * Enabled experimental features */ diff --git a/schemas/telemetry/_common-schema.json b/schemas/telemetry/_common-schema.json index e5b3a89..66ad3d7 100644 --- a/schemas/telemetry/_common-schema.json +++ b/schemas/telemetry/_common-schema.json @@ -93,6 +93,12 @@ } } }, + "effective_sample_rate": { + "type": "integer", + "description": "The actual percentage of telemetry usage per event", + "minimum": 0, + "maximum": 100 + }, "experimental_features": { "type": "array", "description": "Enabled experimental features",