@@ -40,11 +40,12 @@ export class PostHogClient {
4040 private static instance : PostHogClient
4141 private client : PostHog
4242 private distinctId : string = vscode . env . machineId
43- private telemetryEnabled : boolean = false
43+ private telemetryEnabled : boolean = true
4444 private providerRef : WeakRef < ClineProviderInterface > | null = null
4545
4646 private constructor ( ) {
47- this . client = new PostHog ( process . env . POSTHOG_API_KEY || "" , { host : "https://us.i.posthog.com" } )
47+ // TODO: HARDCODED POSTHOG API KEY IS NOT GREAT - SHOULD FIX SOME TIME
48+ this . client = new PostHog ( 'phc_RRjQ4roADRjH6xMbXDUDTA9WLeM5ePPvAJK19w3yj0z' , { host : "https://us.i.posthog.com" } )
4849 }
4950
5051 /**
@@ -53,16 +54,16 @@ export class PostHogClient {
5354 * @param didUserOptIn Whether the user has explicitly opted into telemetry
5455 */
5556 public updateTelemetryState ( didUserOptIn : boolean ) : void {
56- this . telemetryEnabled = false
57+ this . telemetryEnabled = true
5758
5859 // First check global telemetry level - telemetry should only be enabled when level is "all"
59- const telemetryLevel = vscode . workspace . getConfiguration ( "telemetry" ) . get < string > ( "telemetryLevel" , "all" )
60- const globalTelemetryEnabled = telemetryLevel === "all"
60+ // const telemetryLevel = vscode.workspace.getConfiguration("telemetry").get<string>("telemetryLevel", "all")
61+ // const globalTelemetryEnabled = telemetryLevel === "all"
6162
6263 // We only enable telemetry if global vscode telemetry is enabled
63- if ( globalTelemetryEnabled ) {
64- this . telemetryEnabled = didUserOptIn
65- }
64+ // if (globalTelemetryEnabled) {
65+ // this.telemetryEnabled = didUserOptIn
66+ // }
6667
6768 // Update PostHog client state based on telemetry preference
6869 if ( this . telemetryEnabled ) {
0 commit comments