Gemini CLI Core - Core functionality library for the open-source AI agent that brings the power of Gemini directly into your terminal.
Overall
score
87%
Evaluation — 87%
↑ 1.01xAgent success when using this tile
Build a system to configure and initialize OpenTelemetry-based telemetry for a Gemini CLI application. The system should support multiple export backends and provide structured observability data.
Create a telemetry configuration module that enables OpenTelemetry tracing and metrics for Gemini CLI operations. The configuration should:
The configuration should accept the following parameters:
projectId: The GCP project ID for Cloud TraceserviceName: The name of the service (default: "gemini-cli-app")serviceVersion: The version of the service (default: "1.0.0")enabled: Whether telemetry is enabled (default: true)@generates
/**
* Configuration options for OpenTelemetry telemetry
*/
export interface TelemetryConfig {
projectId: string;
serviceName?: string;
serviceVersion?: string;
enabled?: boolean;
}
/**
* Initialize OpenTelemetry telemetry with the given configuration
* Sets up tracing and metrics export to GCP Cloud Trace using OTLP protocol
*
* @param config - Telemetry configuration options
* @returns A cleanup function to shut down telemetry
*/
export function initializeTelemetry(config: TelemetryConfig): () => Promise<void>;
/**
* Get the configured tracer for creating spans
*
* @returns The tracer instance, or undefined if telemetry is not initialized
*/
export function getTracer(): any;Provides OpenTelemetry configuration and telemetry utilities for Gemini CLI applications.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-google--gemini-cli-coredocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10