analytics config p2
This commit is contained in:
parent
07e1eae677
commit
436f0f59ff
4 changed files with 4 additions and 6 deletions
|
|
@ -131,7 +131,7 @@ export default async function doLoadConfig(
|
|||
controlPlaneProxyInfo,
|
||||
);
|
||||
} else {
|
||||
await TeamAnalytics.setup(undefined, "NOT_UNIQUE");
|
||||
await TeamAnalytics.shutdown();
|
||||
}
|
||||
|
||||
newConfig = await injectControlPlaneProxyInfo(
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
import os from "node:os";
|
||||
|
||||
import { Analytics } from "@continuedev/config-types";
|
||||
|
||||
import ContinueProxyAnalyticsProvider from "./analytics/ContinueProxyAnalyticsProvider.js";
|
||||
import {
|
||||
ControlPlaneProxyInfo,
|
||||
|
|
|
|||
|
|
@ -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
2
core/index.d.ts
vendored
|
|
@ -1105,7 +1105,7 @@ export interface ExperimentalConfig {
|
|||
}
|
||||
|
||||
export interface AnalyticsConfig {
|
||||
type: string;
|
||||
provider: string;
|
||||
url?: string;
|
||||
clientKey?: string;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue