Evan Moncuso 689ede2da5
[UI] - introduce Posthog for Vault Dedicated managed clusters (#30425)
* add dummy provider and wire it into the app

* add tests for analytics service

* add posthog provider

* wire in posthog

* add HVD limitation for analytics and add unit test

* filter out sensitive event properties

* add changelog

* run copywrite headers

* update logging tests for analytics service

* update changelog format

* disable telemetry in test mode

* remove unnecessary test

* self review

* Update vault-reporting addon with analytics tracking changes

* address review feedback

---------

Co-authored-by: Jim Wright <jim.wright@hashicorp.com>
2025-05-23 19:40:29 +00:00

34 lines
663 B
TypeScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
/*
Normally, the default export of this file would _do something_.
In the dummy case, the methods for the provider are noops so we
have a safe fallback when analytics is disabled.
*/
import type { AnalyticsProvider } from 'vault/vault/analytics';
export const PROVIDER_NAME = 'dummy';
export class DummyProvider implements AnalyticsProvider {
name = PROVIDER_NAME;
start() {
/* intentionally blank */
}
identify() {
/* intentionally blank */
}
trackPageView() {
/* intentionally blank */
}
trackEvent() {
/* intentionally blank */
}
}