mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 12:04:56 -07:00
feat: Add Open Telemetric semantic standard compliant log (#11975)
This commit is contained in:
committed by
GitHub
parent
44bdd3ad11
commit
70996bfdee
@@ -634,27 +634,27 @@ export class ClearcutLogger {
|
||||
{
|
||||
gemini_cli_key:
|
||||
EventMetadataKey.GEMINI_CLI_API_RESPONSE_INPUT_TOKEN_COUNT,
|
||||
value: JSON.stringify(event.input_token_count),
|
||||
value: JSON.stringify(event.usage.input_token_count),
|
||||
},
|
||||
{
|
||||
gemini_cli_key:
|
||||
EventMetadataKey.GEMINI_CLI_API_RESPONSE_OUTPUT_TOKEN_COUNT,
|
||||
value: JSON.stringify(event.output_token_count),
|
||||
value: JSON.stringify(event.usage.output_token_count),
|
||||
},
|
||||
{
|
||||
gemini_cli_key:
|
||||
EventMetadataKey.GEMINI_CLI_API_RESPONSE_CACHED_TOKEN_COUNT,
|
||||
value: JSON.stringify(event.cached_content_token_count),
|
||||
value: JSON.stringify(event.usage.cached_content_token_count),
|
||||
},
|
||||
{
|
||||
gemini_cli_key:
|
||||
EventMetadataKey.GEMINI_CLI_API_RESPONSE_THINKING_TOKEN_COUNT,
|
||||
value: JSON.stringify(event.thoughts_token_count),
|
||||
value: JSON.stringify(event.usage.thoughts_token_count),
|
||||
},
|
||||
{
|
||||
gemini_cli_key:
|
||||
EventMetadataKey.GEMINI_CLI_API_RESPONSE_TOOL_TOKEN_COUNT,
|
||||
value: JSON.stringify(event.tool_token_count),
|
||||
value: JSON.stringify(event.usage.tool_token_count),
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user