Skip to content

feat(observability): name HTTP handlers with Effect.fn spans#882

Draft
RhysSullivan wants to merge 1 commit into
effect/observabilityfrom
effect/tracing-sweep
Draft

feat(observability): name HTTP handlers with Effect.fn spans#882
RhysSullivan wants to merge 1 commit into
effect/observabilityfrom
effect/tracing-sweep

Conversation

@RhysSullivan
Copy link
Copy Markdown
Owner

Names every HTTP endpoint with a trace span.

Converts all 68 HttpApiBuilder handlers across core/api, the source plugins (mcp/graphql/openapi/onepassword), host-selfhost, and cloud from inline (args) => Effect.gen(...) to named Effect.fn("group.endpoint")(function* (ctx) {...}). Each endpoint now opens a named trace span + fiber — e.g. connections.list, secrets.set, sources.refresh, cloudAuth.me.

Input types don't infer through Effect.fn, so each handler's ctx is annotated from the endpoint contract; a few contract body/param schemas gained export to support typeof X.Type. Pure span-naming refactor — no behaviour change.

Stacked on #881.

Verified: typecheck (all 38 packages), lint (0/0, require-effect-fn-name), format, and api/cloud/plugin/host-selfhost test suites.

Draft — changeset + full e2e to come.

Convert all 68 HttpApiBuilder handlers across core/api, the source plugins
(mcp/graphql/openapi/onepassword), host-selfhost, and cloud from inline
`(args) => Effect.gen(...)` to named `Effect.fn("group.endpoint")(function* (ctx) {...})`.
Each endpoint now opens a named trace span + fiber.

Input types don't infer through Effect.fn, so each handler's `ctx` is annotated
from the endpoint contract; a few contract body/param schemas gained `export` to
support `typeof X.Type`. Pure span-naming refactor — no behaviour change.

Verified: typecheck (all 38 packages), lint (0/0, require-effect-fn-name), format,
and api/cloud/plugin/host-selfhost test suites.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Jun 2, 2026

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 successful!
View logs
executor-cloud 4f927c4 Jun 02 2026, 05:31 PM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Jun 2, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

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

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing 4f927c4 Commit Preview URL

Branch Preview URL
Jun 02 2026, 05:30 PM

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jun 2, 2026

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@882

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@882

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@882

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@882

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@882

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@882

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@882

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@882

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@882

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@882

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@882

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@882

executor

npm i https://pkg.pr.new/executor@882

commit: 4f927c4

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