-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(cloudflare)!: Revert set enableRpcTracePropagation to true by default #23350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -200,20 +200,34 @@ interface BaseCloudflareOptions { | |
| * - Create spans for each RPC method invocation | ||
| * - Capture errors thrown by RPC methods | ||
| * | ||
| * **Important:** This option is enabled by default. Set it to `false` to opt out, e.g. if you | ||
| * do not want trace context to leave your Worker via RPC calls. | ||
| * **Important:** This option should be enabled on **both sides** for full trace propagation. | ||
| * | ||
| * @default true | ||
| * @default false | ||
| * @example | ||
| * ```ts | ||
| * // Opt out of RPC trace propagation | ||
| * // Worker side (caller) | ||
| * export default Sentry.withSentry( | ||
| * (env) => ({ | ||
| * dsn: env.SENTRY_DSN, | ||
| * enableRpcTracePropagation: false, | ||
| * enableRpcTracePropagation: true, | ||
| * }), | ||
| * handler, | ||
| * ); | ||
| * | ||
| * // Durable Object side (receiver) | ||
| * export const MyDO = Sentry.instrumentDurableObjectWithSentry( | ||
| * (env) => ({ | ||
| * dsn: env.SENTRY_DSN, | ||
| * enableRpcTracePropagation: true, | ||
| * }), | ||
| * MyDOBase, | ||
| * ); | ||
| * | ||
| * // WorkerEntrypoint side (receiver) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The migration guide incorrectly states Suggested FixUpdate the migration documentation in Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
| * export const MyEntrypoint = Sentry.withSentry( | ||
| * env => ({ dsn: env.SENTRY_DSN, enableRpcTracePropagation: true }), | ||
| * MyEntrypointBase, | ||
| * ); | ||
| * ``` | ||
| */ | ||
| enableRpcTracePropagation?: boolean; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should drop the TODO tho right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now I wanted to revert it only and update the migration.md properly with the new changes. Since we have now a different migration.md file it might make sense to remove it entirely here for now