mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 04:30:48 +00:00
OpenTelemetry Integration & Telemetry Control Flag (#762)
This commit is contained in:
parent
d3e43437a0
commit
2ebf2fbc82
20 changed files with 1992 additions and 31 deletions
|
|
@ -17,6 +17,7 @@ import {
|
|||
Config,
|
||||
MessageSenderType,
|
||||
ToolCallRequestInfo,
|
||||
logUserPrompt,
|
||||
} from '@gemini-code/core';
|
||||
import { type PartListUnion } from '@google/genai';
|
||||
import {
|
||||
|
|
@ -178,6 +179,10 @@ export const useGeminiStream = (
|
|||
|
||||
if (typeof query === 'string') {
|
||||
const trimmedQuery = query.trim();
|
||||
logUserPrompt(config, {
|
||||
prompt: trimmedQuery,
|
||||
prompt_char_count: trimmedQuery.length,
|
||||
});
|
||||
onDebugMessage(`User query: '${trimmedQuery}'`);
|
||||
await logger?.logMessage(MessageSenderType.USER, trimmedQuery);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue