Skip to content

docs(cloudflare): clarify Vite entry instrumentation - #18944

Merged
sergical merged 1 commit into
masterfrom
docs/cloudflare-vite-entry-classes
Aug 6, 2026
Merged

docs(cloudflare): clarify Vite entry instrumentation#18944
sergical merged 1 commit into
masterfrom
docs/cloudflare-vite-entry-classes

Conversation

@sergical

@sergical sergical commented Aug 5, 2026

Copy link
Copy Markdown
Member

Clarifies that the Cloudflare Vite plugin locates instrument.server.* next to the Worker entry configured by wrangler's main, with a concrete nested-entry example.

Documents that configured Durable Object, Workflow, and Agents SDK classes imported or re-exported from another module cannot be wrapped automatically, and shows how to export a manually wrapped class from the entry with the same options callback.

@vercel

vercel Bot commented Aug 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview Aug 5, 2026 4:39am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Aug 5, 2026 4:39am

Request Review

import { sentryOptions } from "./instrument.server";
import { MyAgent as MyAgentBase } from "./my-agent";

export const MyAgent = Sentry.instrumentAgentWithSentry(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That should actually work I did an entire hack to make it work. I wonder why this doesn't work correctly.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can land this for now, as it doesn't seem to work properly

@sergical
sergical merged commit 3287b1a into master Aug 6, 2026
22 checks passed
@sergical
sergical deleted the docs/cloudflare-vite-entry-classes branch August 6, 2026 15:32
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.

2 participants