mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 15:11:07 +02:00
* 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>
20 lines
528 B
TypeScript
20 lines
528 B
TypeScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
export const PREFIX = 'vault_ui';
|
|
|
|
/*
|
|
buildEventName is a helper to build conformant analytics event names.
|
|
|
|
While event names are not strictly controlled in the data warehouse, consistent
|
|
naming helps find things predictably.
|
|
|
|
|
|
*/
|
|
const buildEventName = (category: string, resource: string, action: string) =>
|
|
`${PREFIX}_${category}_${resource}_${action}`;
|
|
|
|
export const TOGGLE_WEB_REPL = buildEventName('core', 'web-repl', 'toggle');
|