fix: Stop telemetry events to Posthog (#16788)

This commit is contained in:
Ricardo Espinoza
2025-06-30 09:08:47 -04:00
committed by GitHub
parent 913334005f
commit d76f05ba3d
30 changed files with 247 additions and 461 deletions

View File

@@ -195,11 +195,7 @@ export class Telemetry {
});
}
track(
eventName: string,
properties: ITelemetryTrackProperties = {},
{ withPostHog } = { withPostHog: false }, // whether to additionally track with PostHog
) {
track(eventName: string, properties: ITelemetryTrackProperties = {}) {
if (!this.rudderStack) {
return;
}
@@ -219,10 +215,6 @@ export class Telemetry {
context: {},
};
if (withPostHog) {
this.postHog?.track(payload);
}
return this.rudderStack.track({
...payload,
// provide a fake IP address to instruct RudderStack to not use the user's IP address