Skip to content

Update telemetry#394

Merged
HenryNdubuaku merged 1 commit intomainfrom
justin/telemetry-fixes
Feb 24, 2026
Merged

Update telemetry#394
HenryNdubuaku merged 1 commit intomainfrom
justin/telemetry-fixes

Conversation

@justinl66
Copy link
Copy Markdown
Member

Remove function call logging

Copilot AI review requested due to automatic review settings February 24, 2026 00:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Cactus telemetry pipeline to stop emitting tool/function call details in recorded telemetry events.

Changes:

  • Telemetry event serialization now always emits "function_calls": null for cloud payloads and cached logs.
  • FFI completion telemetry (CompletionMetrics) no longer passes function call JSON into telemetry.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
cactus/telemetry/telemetry.cpp Forces function_calls to null in both cloud upload payloads and local cache logs.
cactus/ffi/cactus_complete.cpp Stops attaching function call JSON to completion telemetry metrics.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 398 to 402
metrics.prefill_tokens = prompt_tokens;
metrics.decode_tokens = completion_tokens;
metrics.error_message = nullptr;
metrics.function_calls_json = function_calls_json.c_str();
metrics.function_calls_json = nullptr;
cactus::telemetry::recordCompletion(handle->model_name.c_str(), metrics);
Copy link

Copilot AI Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

serialize_function_calls(function_calls) is still executed (and assigned to function_calls_json) but metrics.function_calls_json is now set to nullptr, so the serialized value is unused. This adds unnecessary work and may trigger an unused-variable warning depending on compiler flags. Consider removing the function_calls_json local (and the serialization call) when telemetry is intentionally not recording function calls.

Copilot uses AI. Check for mistakes.
@HenryNdubuaku HenryNdubuaku merged commit bcbf8b3 into main Feb 24, 2026
7 of 8 checks passed
ncylich pushed a commit that referenced this pull request Feb 24, 2026
cattermelon1234 pushed a commit to cattermelon1234/cactus that referenced this pull request Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants