Remove dead analytics and telemetry scaffolding
This commit is contained in:
@@ -1,58 +1,16 @@
|
||||
/**
|
||||
* Anthropic 1P event logging egress is disabled in this build.
|
||||
*
|
||||
* The module keeps its public API so the rest of the app can call into it
|
||||
* without conditional imports.
|
||||
* Only the shutdown and feedback call sites still need a local stub.
|
||||
*/
|
||||
|
||||
import type { GrowthBookUserAttributes } from './growthbook.js'
|
||||
|
||||
export type EventSamplingConfig = {
|
||||
[eventName: string]: {
|
||||
sample_rate: number
|
||||
}
|
||||
}
|
||||
|
||||
export function getEventSamplingConfig(): EventSamplingConfig {
|
||||
return {}
|
||||
}
|
||||
|
||||
export function shouldSampleEvent(_eventName: string): number | null {
|
||||
return null
|
||||
}
|
||||
|
||||
export async function shutdown1PEventLogging(): Promise<void> {
|
||||
return
|
||||
}
|
||||
|
||||
export function is1PEventLoggingEnabled(): boolean {
|
||||
return false
|
||||
}
|
||||
|
||||
export function logEventTo1P(
|
||||
_eventName: string,
|
||||
_metadata: Record<string, number | boolean | undefined> = {},
|
||||
): void {
|
||||
return
|
||||
}
|
||||
|
||||
export type GrowthBookExperimentData = {
|
||||
experimentId: string
|
||||
variationId: number
|
||||
userAttributes?: GrowthBookUserAttributes
|
||||
experimentMetadata?: Record<string, unknown>
|
||||
}
|
||||
|
||||
export function logGrowthBookExperimentTo1P(
|
||||
_data: GrowthBookExperimentData,
|
||||
): void {
|
||||
return
|
||||
}
|
||||
|
||||
export function initialize1PEventLogging(): void {
|
||||
return
|
||||
}
|
||||
|
||||
export async function reinitialize1PEventLoggingIfConfigChanged(): Promise<void> {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user