FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(desktop): skip app handle in transcribe_audio instrumentation and downgrade chunk logging (#2367) by adamscarmccoy-boop · Pull Request #2415 · CapSoftware/Cap · GitHub

Repository navigation

fix(desktop): skip app handle in transcribe_audio instrumentation and downgrade chunk logging (#2367) - #2415

Open
adamscarmccoy-boop wants to merge 1 commit into
CapSoftware:mainfrom
adamscarmccoy-boop:fix/transcribe-logging-skip-app
Open

adamscarmccoy-boop wants to merge 1 commit into
CapSoftware:mainfrom
adamscarmccoy-boop:fix/transcribe-logging-skip-app

Conversation

adamscarmccoy-boop commented Oct 5, 2026 •
edited by greptile-apps Bot
Loading

Copy link
Copy Markdown

Resolves #2367. /claim #2367

Description

In \ ranscribe_audio, the #[instrument]\ attribute did not specify \skip(app). Because \AppHandle\ implements \Debug, every tracing event printed the full internal Tauri \AppHandle\ state (~9 KB per log entry). In addition, per-chunk audio resampling logged at \INFO\ level every 100 chunks, resulting in over 800 log lines and ballooning single-transcription logs to ~7.7 MB.

Changes

  • Added \skip(app)\ to #[instrument(skip(app))]\ on \pub async fn transcribe_audio\ in \captions.rs.
  • Downgraded per-chunk resampling progress logs from \log::info!\ to \log::debug!.
  • Reduced transcription log footprint by ~96% without losing diagnostic telemetry.

Confidence Score: 5/5

The PR appears safe to merge; no actionable regression was identified.

Summary

The PR excludes the verbose Tauri app handle from the transcription span and moves per-chunk resampling messages to debug level while retaining higher-level extraction and error logs.

Reviews (1) · Last reviewed commit: "fix(desktop): skip app handle in transcr..."

… downgrade chunk logging (CapSoftware#2367)

Resolves CapSoftware#2367. /claim CapSoftware#2367

- Add skip(app) to #[instrument] on transcribe_audio to eliminate 9KB Tauri AppHandle dump on every event
- Downgrade per-chunk resampling logs from info to debug to eliminate hundreds of repetitive log lines
- Reduces transcription log size by ~96%

Signed-off-by: adamscarmccoy-boop <adamscarmccoy@gmail.com>

Copy link
Copy Markdown

🚨 Contributor flagged. Click here for more info: Superagent Dashboard

Copy link
Copy Markdown
Author

Hey @mc-ilroy its AdamScarMcCoy here, saw your merges are active and wanted to advise that this merge has completed the required checks and is ready to go!! Let me know if I can help in any other way, look forward to your review. Thanks!

This branch has not been deployed

No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Logging: full AppHandle Debug dump on every line of transcribe_audio (≈96% of log size)

1 participant


Back | FazBrowse Home | New Git URL