Skip to content

Create server runtime Client in @sentry/core #8693

Description

@mydea

Kind of extracted from #8087, and related to #8688, create a new ServerRuntimeClient (name tbd) as well as an init in @sentry/core. The idea is that this can be called from any JS runtime, so browser, node, edge, ... so it should only contain stuff that works everywhere.

For the first step, we can just implement this based on the EdgeClient from Next.js, as well as an init() method based on the edge init.

In follow up steps, we can then actually extend from this for node/serverless SDKs, and re-use as much as possible.

### Tasks
- [ ] https://github.com/getsentry/sentry-javascript/pull/8930
- [ ] https://github.com/getsentry/sentry-javascript/pull/8932
- [ ] https://github.com/getsentry/sentry-javascript/pull/8933
- [x] Use `ServerRuntimeClient` in serverless (TODO: Or continue using node?)
- [x] Stretch goal: Use `ServerRuntimeClient` in Sveltekit

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions