F-013: feat(observability): tracing spans on pipeline functions#17
Merged
Sephyi merged 1 commit intodevelopmentfrom Apr 30, 2026
Merged
Conversation
Add `#[tracing::instrument]` to the three load-bearing stages of the commit-generation pipeline so span-aware debug output (e.g. `COMMITBEE_LOG=debug,commitbee::app=trace`) shows per-stage timing and a handful of high-signal fields: - `App::generate_commit` — provider, model - `AnalyzerService::extract_symbols` — file_count - `ContextBuilder::build` — symbols, diffs, files All spans use `skip_all` plus explicit fields so `Self`, raw file contents, and large collections are never recorded as span attributes. No function signatures or return types change; this is purely diagnostic. Closes audit entry F-013 from #3.
There was a problem hiding this comment.
Pull request overview
Adds tracing spans to key pipeline functions to improve observability and satisfy audit finding F-013.
Changes:
- Instrument
App::generate_commit()with span fields for provider/model. - Instrument
AnalyzerService::extract_symbols()with a file-count field. - Instrument
ContextBuilder::build()with fields describing symbol/diff/file counts.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/app.rs |
Adds a tracing span around the main commit-generation pipeline entrypoint. |
src/services/analyzer.rs |
Adds a tracing span for the symbol extraction step. |
src/services/context.rs |
Adds a tracing span for prompt-context construction with basic cardinality fields. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
feat(observability): tracing spans on pipeline functions.
Audit context
Closes audit entry F-013 from #3.
Verification
cargo fmt --checkcargo clippy --all-targets --all-features -- -D warningscargo test --all-targets