feat: Update telemetry api endpoints (#5482)

* feat: update PostHog api endpoint

* feat: update rs host

* feat: update rs host

* feat: update rs endpoints

* refactor: use api host for BE events as well
This commit is contained in:
Mutasem Aldmour
2023-02-16 15:07:08 +03:00
committed by GitHub
parent 00ac4c308a
commit 3de49e8f78
3 changed files with 6 additions and 3 deletions

View File

@@ -60,7 +60,9 @@ export class Telemetry {
// eslint-disable-next-line @typescript-eslint/naming-convention
const { PostHog } = await import('posthog-node');
this.postHog = new PostHog(config.getEnv('diagnostics.config.posthog.apiKey'));
this.postHog = new PostHog(config.getEnv('diagnostics.config.posthog.apiKey'), {
host: config.getEnv('diagnostics.config.posthog.apiHost'),
});
this.startPulse();
}