Skip to content

SMOODEV-2026: TS observability transport + OTLP via @smooai/fetch#66

Merged
brentrager merged 1 commit into
mainfrom
SMOODEV-2026-ts-fetch
Jun 21, 2026
Merged

SMOODEV-2026: TS observability transport + OTLP via @smooai/fetch#66
brentrager merged 1 commit into
mainfrom
SMOODEV-2026-ts-fetch

Conversation

@brentrager

Copy link
Copy Markdown
Contributor

Both the webhook transport AND the OTLP exporter now go through @smooai/fetch (the exporter takes a custom fetch via defaultExporterFetch; @smooai/fetch owns retries/timeouts/circuit-breaking — single-owner, no double-retry). Browser sendBeacon page-unload fallback kept. Transport override escape hatch preserved. SMOODEV-2026 / epic 1981.

🤖 Generated with Claude Code

…P where feasible)

Route the SDK's outbound HTTP through @smooai/fetch (resilient client:
retries/timeouts/circuit-breaking) instead of raw fetch.

- Transport (webhook batch delivery): node/browser adapters inject the
  matching @smooai/fetch entry point; the timer/batch flush goes through
  it. Browser sendBeacon page-unload fallback left untouched (browser
  primitive, not fetch). Throw-on-failure re-queues via the existing
  catch path.
- OTLP exporter (auth-injecting-exporter): default transport is now
  @smooai/fetch; HTTPResponseError is unwrapped back to the Response so
  the 401-refresh-once + non-ok branching keeps working. Dropped the
  hand-rolled AbortController timeout — @smooai/fetch owns the single
  retry/timeout layer (BatchSpanProcessor/PeriodicExportingMetricReader
  already re-export on FAILED, so no second in-exporter retry loop).
- Added @smooai/fetch dep; tests for both transport injection and the
  exporter (success/401-retry/non-ok/throw paths).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jun 21, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 7779367

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@brentrager brentrager merged commit 0536287 into main Jun 21, 2026
6 checks passed
@brentrager brentrager deleted the SMOODEV-2026-ts-fetch branch June 21, 2026 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant