(
input: { readonly enabled?: boolean; readonly env?: NodeJS.ProcessEnv } = {},
)
| 27 | } |
| 28 | |
| 29 | export function shouldEnableTelemetry( |
| 30 | input: { readonly enabled?: boolean; readonly env?: NodeJS.ProcessEnv } = {}, |
| 31 | ): boolean { |
| 32 | return input.enabled !== false && !isTelemetryDisabledByEnv(input.env ?? process.env); |
| 33 | } |
| 34 | |
| 35 | export function initializeTelemetry(options: TelemetryBootstrapOptions): void { |
| 36 | const client = getDefaultTelemetryClient(); |
no test coverage detected