Skip to content

feat(sveltekit): Add wrapper for remote function invocation #17328

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

Closed
wants to merge 1 commit into from

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Aug 5, 2025

[ignore, this was just a test for cursor PR reviews]
let's see if this works...

await flushIfServerless();
}
},
});
Copy link

Choose a reason for hiding this comment

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

Bug: Sentry Wrapping Function Type and Attribute Issues

The wrapRemoteFunctionWithSentry function has three issues:

  1. Its async proxy apply method breaks the type contract for synchronous origRemoteFn, causing it to return a Promise<ReturnType<T>> instead of ReturnType<T>.
  2. The startSpan call is missing the required SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ('sentry.origin') and SEMANTIC_ATTRIBUTE_SENTRY_OP ('sentry.op') span attributes.
  3. The captureException call is missing the mechanism parameter, which must specify handled (true/false) and type (integration/origin).
Fix in Cursor Fix in Web

Copy link
Member Author

Choose a reason for hiding this comment

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

good cursor! have a treat!

@Lms24 Lms24 closed this Aug 5, 2025
@Lms24 Lms24 changed the title feat(sveltekit): Add wrapper for remote function invokation feat(sveltekit): Add wrapper for remote function invocation Aug 5, 2025
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