Skip to content

refactor(ai-gateway): lift telemetry into Effect - #164

Merged
robinbraemer merged 1 commit into
mainfrom
feat/ai-gateway-effect-observability
Aug 1, 2026
Merged

refactor(ai-gateway): lift telemetry into Effect#164
robinbraemer merged 1 commit into
mainfrom
feat/ai-gateway-effect-observability

Conversation

@robinbraemer

Copy link
Copy Markdown
Member

Progresses #105
Progresses #102

Outcome

Introduces the Effect-native AI Gateway telemetry boundary used by the runtime migration. Legacy synchronous telemetry is lifted into typed Effect operations, and telemetry defects are contained so diagnostics can never replace request semantics.

Behavior

  • Models the full request, authorization, route, quota, upstream, streaming, release, and terminal lifecycle as Effects.
  • Preserves safe attempt correlation and the existing bounded telemetry schema.
  • Converts adapter defects into inert telemetry without exposing payloads, credentials, or provider identity.
  • Provides an explicit no-op service for disabled observability.
  • Adds the suite to the repository Effect gate.

Verification

  • AI Gateway legacy characterization: 64 passed
  • Effect suite: 221 passed across 42 files
  • Effect policy: 397 TypeScript paths, zero violations
  • build, sequential root typecheck, and diff check passed after rebase onto main

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
agentos-site 7e52c44 Aug 01 2026, 07:48 PM

@robinbraemer

Copy link
Copy Markdown
Member Author

Required check passed. Local evidence: 64 AI Gateway legacy characterization tests, 221 Effect tests across 42 files, Effect policy over 397 TypeScript paths with zero violations, plus build, sequential root typecheck, and diff check after rebase. The external Workers Builds: agentos-site integration failed and its dependent website preview remains pending, matching prior PRs; this PR does not change the website.

@robinbraemer
robinbraemer merged commit 91ad5a6 into main Aug 1, 2026
1 of 3 checks passed
@robinbraemer
robinbraemer deleted the feat/ai-gateway-effect-observability branch August 1, 2026 20:11
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