From d96af8bacd84d065310dddb49abb7561c4a7b059 Mon Sep 17 00:00:00 2001 From: jerop Date: Wed, 11 Jun 2025 16:50:24 +0000 Subject: refactor(telemetry): pass config object to telemetry functions This commit refactors the telemetry system to pass a object to various logging and metrics functions. This change centralizes configuration management within the telemetry system, making it more modular and easier to maintain. The constructor and various tool execution functions have been updated to accept the object, which is then passed down to the telemetry functions. This eliminates the need to pass individual configuration values, such as , through multiple layers of the application. --- packages/cli/src/ui/hooks/useReactToolScheduler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/cli/src/ui/hooks/useReactToolScheduler.ts') diff --git a/packages/cli/src/ui/hooks/useReactToolScheduler.ts b/packages/cli/src/ui/hooks/useReactToolScheduler.ts index 8dbcfb87..4e55cba4 100644 --- a/packages/cli/src/ui/hooks/useReactToolScheduler.ts +++ b/packages/cli/src/ui/hooks/useReactToolScheduler.ts @@ -122,7 +122,7 @@ export function useReactToolScheduler( } duration = call.durationMs || 0; - logToolCall({ + logToolCall(config, { function_name: call.request.name, function_args: call.request.args, duration_ms: duration, -- cgit v1.2.3