mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
41 lines
887 B
TypeScript
41 lines
887 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
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 };
|
|
export {
|
|
initializeTelemetry,
|
|
shutdownTelemetry,
|
|
isTelemetrySdkInitialized,
|
|
} from './sdk.js';
|
|
export {
|
|
logCliConfiguration,
|
|
logUserPrompt,
|
|
logToolCall,
|
|
logApiRequest,
|
|
logApiError,
|
|
logApiResponse,
|
|
getFinalUsageMetadata,
|
|
} from './loggers.js';
|
|
export {
|
|
UserPromptEvent,
|
|
ToolCallEvent,
|
|
ApiRequestEvent,
|
|
ApiErrorEvent,
|
|
ApiResponseEvent,
|
|
CliConfigEvent,
|
|
TelemetryEvent,
|
|
} from './types.js';
|
|
export { SpanStatusCode, ValueType } from '@opentelemetry/api';
|
|
export { SemanticAttributes } from '@opentelemetry/semantic-conventions';
|