Changes: - Ensure proper shutdown in non-interactive mode - Ensures the initial user prompt is logged in non-interactive mode - Improve telemetry for streaming - handle chunks and input token count is now alongside other token counts in response To test: - Follow instructions in https://github.com/google-gemini/gemini-cli/blob/main/docs/core/telemetry.md#google-cloud - Run CLI in non-interactive mode and observe logs/metrics in GCP Logs Explorer and Metrics Explorer #750
31 lines
648 B
TypeScript
31 lines
648 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
export {
|
|
initializeTelemetry,
|
|
shutdownTelemetry,
|
|
isTelemetrySdkInitialized,
|
|
} from './sdk.js';
|
|
export {
|
|
logCliConfiguration,
|
|
logUserPrompt,
|
|
logToolCall,
|
|
logApiRequest,
|
|
logApiError,
|
|
logApiResponse,
|
|
combinedUsageMetadata,
|
|
} 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';
|