Skip to content

refactor(tracing): add #[tracing::instrument] to channels, orchestration, and llm hot paths#4833

Merged
bug-ops merged 1 commit into
mainfrom
tracing-instrument
Jun 5, 2026
Merged

refactor(tracing): add #[tracing::instrument] to channels, orchestration, and llm hot paths#4833
bug-ops merged 1 commit into
mainfrom
tracing-instrument

Conversation

@bug-ops

@bug-ops bug-ops commented Jun 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Instruments 17 async hot-path fns in zeph-channels (Telegram API ext, Discord REST client, Slack API client) under #[cfg_attr(feature = "profiling", tracing::instrument(name = "channel.<adapter>.<op>", skip_all))]
  • Adds PlanCache::find_similar and PlanCache::cache_plan spans in zeph-orchestration (plain #[tracing::instrument] — orchestration crate has no profiling feature)
  • Adds OllamaProvider::chat_with_tools instrumentation in zeph-llm, completing profiling coverage across all five LlmProvider backends

Test plan

  • cargo nextest run --workspace --lib --bins — 10496/10496 passed (verified in CI)
  • cargo clippy --workspace -- -D warnings — clean
  • cargo +nightly fmt --check — clean
  • git diff origin/main --name-only — exactly 7 files (6 source + CHANGELOG)
  • No .entered() across .await in any modified file

Closes #4818, #4807, #4824

@github-actions github-actions Bot added documentation Improvements or additions to documentation llm zeph-llm crate (Ollama, Claude) channels zeph-channels crate (Telegram) rust Rust code changes refactor Code refactoring without functional changes size/M Medium PR (51-200 lines) labels Jun 5, 2026
…ion, and llm hot paths

Instruments 17 uninstrumented async fns in zeph-channels under the `profiling`
feature gate (channel.<adapter>.<operation> naming), PlanCache::find_similar and
cache_plan in zeph-orchestration (plain instrument, no profiling feature in that
crate), and OllamaProvider::chat_with_tools in zeph-llm (cfg_attr profiling),
completing profiling coverage across all LlmProvider backends.

Closes #4818, #4807, #4824
@bug-ops bug-ops enabled auto-merge (squash) June 5, 2026 14:50
@bug-ops bug-ops force-pushed the tracing-instrument branch from 240bb58 to 0b87950 Compare June 5, 2026 14:50
@bug-ops bug-ops merged commit d904632 into main Jun 5, 2026
32 checks passed
@bug-ops bug-ops deleted the tracing-instrument branch June 5, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channels zeph-channels crate (Telegram) documentation Improvements or additions to documentation llm zeph-llm crate (Ollama, Claude) refactor Code refactoring without functional changes rust Rust code changes size/M Medium PR (51-200 lines)

Projects

None yet

1 participant