SMOODEV-2026: Python observability transport via smooai-fetch (⚠ bumps Python floor to 3.12)#64
Merged
Merged
Conversation
|
…OTLP where feasible) The batched webhook event delivery now goes through smooai-fetch (retries/timeouts/circuit-breaking) instead of raw httpx. smooai-fetch is async-only, so the transport's daemon worker thread owns a private asyncio loop and drives fetch() via run_until_complete; the host loop is never touched. The fetch call is injectable (fetch_fn) because smooai-fetch constructs its own httpx.AsyncClient with no client-injection seam — tests substitute an async stub. smooai-fetch requires Python >=3.12, so the SDK floor bumps from >=3.10 to >=3.12 (ruff target-version py312, uv.lock drops cp310/cp311 wheels). OTLP exporter (secondary) deferred: opentelemetry-exporter-otlp-proto-http is coupled to a sync requests.Session and owns protobuf serialization + its own retry loop. Backing it with async smooai-fetch would mean reimplementing that encoding/retry surface — the same reason the Rust SDK kept reqwest for OTLP (#61, Code-Conventions #29). Deferred cleanly rather than hacked; no double-retry layer introduced. The OAuth token provider keeps httpx for the same reason (it backs the OTLP path). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…312 floor) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
6844710 to
c35bef5
Compare
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
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.
Webhook transport now goes through smooai-fetch (retries/timeouts/circuit-breaking); injectable fetch_fn test seam; async-in-sync bridge for the sync worker thread. OTLP deferred (exporter coupled to requests.Session + protobuf; would mean reimplementing the protobuf POST — same rationale Rust used before #2029's clean HttpClient trait; no double-retry). ruff+pytest(66) green.
🤖 Generated with Claude Code