Commit 6d29ca6
feat: Add optional Logfire observability to sync operations
Add Logfire as a dependency for performance instrumentation. Logfire is
disabled by default (via ignore_no_config) and only activates when
LOGFIRE_TOKEN is set, keeping the FOSS version telemetry-free.
Changes:
- Added logfire>=0.73.0 as dependency
- Instrumented sync_file() and sync_markdown_file() with @logfire.instrument()
- Logfire captures function arguments and timing automatically
- No changes to behavior when LOGFIRE_TOKEN is not set
This will help diagnose performance bottlenecks in sync operations,
particularly for understanding the 28% slowdown in initial sync compared
to baseline (50.4ms vs 39.3ms per file).
Related: SPEC-19 Phase 1 performance analysis
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: phernandez <paul@basicmachines.co>1 parent cc3dd25 commit 6d29ca6
3 files changed
Lines changed: 218 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
495 | 496 | | |
496 | 497 | | |
497 | 498 | | |
| 499 | + | |
498 | 500 | | |
499 | 501 | | |
500 | 502 | | |
| |||
549 | 551 | | |
550 | 552 | | |
551 | 553 | | |
| 554 | + | |
552 | 555 | | |
553 | 556 | | |
554 | 557 | | |
| |||
0 commit comments