Skip to content

feat: add aiMiddleware - #1695

Open
Linell wants to merge 3 commits into
mainfrom
linell/ai-middleware
Open

feat: add aiMiddleware#1695
Linell wants to merge 3 commits into
mainfrom
linell/ai-middleware

Conversation

@Linell

@Linell Linell commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds experimental aiMiddleware(), a single bundle enabling scoring (step.score()), metadata (step.metadata()), and extended traces (ctx.tracer) together. Returned as a tuple so it spreads into middleware: [...] and composes with user middleware. Pass traces: { behaviour: "off" } to leave the OpenTelemetry provider untouched.
  • Fixes extendedTracesMiddleware() replacing the app's global OTel diagnostic logger even when it has no span processor of its own (behaviour: "off", or "extendProvider" with no provider found).

Changesets included for both.

Stacked: the example app for this lands in a follow-up PR on top of this one.

Docs: inngest/website#1837.

@changeset-bot

changeset-bot Bot commented Aug 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 06b0e7b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
inngest Minor

Not sure what this means? Click here to learn what changesets are.

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

@inngest-release-bot inngest-release-bot added the 📦 inngest Affects the `inngest` package label Aug 10, 2026
mendral-app[bot]

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📦 inngest Affects the `inngest` package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants