2025-06-05 16:04:25 -04:00
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright 2025 Google LLC
|
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
*/
|
|
|
|
|
|
2025-06-15 00:47:32 -04:00
|
|
|
export enum TelemetryTarget {
|
|
|
|
|
GCP = 'gcp',
|
|
|
|
|
LOCAL = 'local',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const DEFAULT_TELEMETRY_TARGET = TelemetryTarget.LOCAL;
|
|
|
|
|
const DEFAULT_OTLP_ENDPOINT = 'http://localhost:4317';
|
|
|
|
|
|
|
|
|
|
export { DEFAULT_TELEMETRY_TARGET, DEFAULT_OTLP_ENDPOINT };
|
2025-06-05 16:04:25 -04:00
|
|
|
export {
|
|
|
|
|
initializeTelemetry,
|
|
|
|
|
shutdownTelemetry,
|
|
|
|
|
isTelemetrySdkInitialized,
|
|
|
|
|
} from './sdk.js';
|
|
|
|
|
export {
|
|
|
|
|
logCliConfiguration,
|
|
|
|
|
logUserPrompt,
|
|
|
|
|
logToolCall,
|
|
|
|
|
logApiRequest,
|
|
|
|
|
logApiError,
|
|
|
|
|
logApiResponse,
|
2025-07-12 02:40:25 +05:30
|
|
|
logFlashFallback,
|
2025-07-29 16:20:37 -04:00
|
|
|
logSlashCommand,
|
2025-08-25 16:06:47 -04:00
|
|
|
logConversationFinishedEvent,
|
2025-08-13 13:32:54 -04:00
|
|
|
logKittySequenceOverflow,
|
2025-08-18 15:59:13 -04:00
|
|
|
logChatCompression,
|
2025-06-05 16:04:25 -04:00
|
|
|
} from './loggers.js';
|
2025-08-26 00:04:53 +02:00
|
|
|
export type { SlashCommandEvent, ChatCompressionEvent } from './types.js';
|
2025-06-05 16:04:25 -04:00
|
|
|
export {
|
2025-08-26 00:04:53 +02:00
|
|
|
SlashCommandStatus,
|
2025-06-22 09:26:48 -05:00
|
|
|
EndSessionEvent,
|
2025-06-05 16:04:25 -04:00
|
|
|
UserPromptEvent,
|
|
|
|
|
ApiRequestEvent,
|
|
|
|
|
ApiErrorEvent,
|
|
|
|
|
ApiResponseEvent,
|
2025-07-12 02:40:25 +05:30
|
|
|
FlashFallbackEvent,
|
2025-08-26 00:04:53 +02:00
|
|
|
StartSessionEvent,
|
|
|
|
|
ToolCallEvent,
|
2025-08-25 16:06:47 -04:00
|
|
|
ConversationFinishedEvent,
|
2025-08-13 13:32:54 -04:00
|
|
|
KittySequenceOverflowEvent,
|
2025-06-05 16:04:25 -04:00
|
|
|
} from './types.js';
|
2025-08-26 00:04:53 +02:00
|
|
|
export { makeSlashCommandEvent, makeChatCompressionEvent } from './types.js';
|
|
|
|
|
export type { TelemetryEvent } from './types.js';
|
2025-06-05 16:04:25 -04:00
|
|
|
export { SpanStatusCode, ValueType } from '@opentelemetry/api';
|
|
|
|
|
export { SemanticAttributes } from '@opentelemetry/semantic-conventions';
|
2025-06-29 20:44:33 -04:00
|
|
|
export * from './uiTelemetry.js';
|