analytics config p2

This commit is contained in:
Dallin Romney 2025-02-04 12:08:55 -08:00
parent 07e1eae677
commit 436f0f59ff
4 changed files with 4 additions and 6 deletions

View file

@ -131,7 +131,7 @@ export default async function doLoadConfig(
controlPlaneProxyInfo,
);
} else {
await TeamAnalytics.setup(undefined, "NOT_UNIQUE");
await TeamAnalytics.shutdown();
}
newConfig = await injectControlPlaneProxyInfo(

View file

@ -1,7 +1,5 @@
import os from "node:os";
import { Analytics } from "@continuedev/config-types";
import ContinueProxyAnalyticsProvider from "./analytics/ContinueProxyAnalyticsProvider.js";
import {
ControlPlaneProxyInfo,

View file

@ -1,4 +1,4 @@
import { Analytics } from "@continuedev/config-types";
import { AnalyticsConfig } from "../..";
export interface AnalyticsMetadata {
extensionVersion: string;
@ -13,7 +13,7 @@ export interface ControlPlaneProxyInfo {
export interface IAnalyticsProvider {
capture(event: string, properties: { [key: string]: any }): Promise<void>;
setup(
config: Analytics,
config: AnalyticsConfig,
uniqueId: string,
controlPlaneProxyInfo?: ControlPlaneProxyInfo,
): Promise<void>;

2
core/index.d.ts vendored
View file

@ -1105,7 +1105,7 @@ export interface ExperimentalConfig {
}
export interface AnalyticsConfig {
type: string;
provider: string;
url?: string;
clientKey?: string;
}