Skip to content

Improve transaction setup for NextJS and caches #16213

Description

@Angelodaniel

Problem Statement

I got a full-stack Next.js app that leverages a Cloudflare cache heavily.

We can currently see that by default Sentry tracks these 2 transactions:
GET / - server-side render
/<somepath - fired client side

One server-side render will map to many client-side renders (due to caching), if that changes anything.

For cases like these server -> client tracing is simply not a good idea. The traces will look horrendous most likely.
for now, we don’t have a workaround unfortunately but we’ll add an option to disable server -> client tracing for SSR.

Solution Brainstorm

for now, we don’t have a workaround unfortunately but we’ll add an option to disable server -> client tracing for SSR.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions