diff --git a/src/plugins/telemetry/server/plugin.ts b/src/plugins/telemetry/server/plugin.ts index 8890aa94690fe8..f26644d165f63c 100644 --- a/src/plugins/telemetry/server/plugin.ts +++ b/src/plugins/telemetry/server/plugin.ts @@ -133,7 +133,7 @@ export class TelemetryPlugin implements Plugin this.getOptInStatus()), - startWith(this.isOptedIn), + startWith(this.isOptedIn), // feed the initial config value to the pipeline filter((isOptedIn): isOptedIn is boolean => typeof isOptedIn === 'boolean'), distinctUntilChanged(), tap((optedIn) => (this.isOptedIn = optedIn)),