Skip to content

Improve transaction setup for NextJS and caches #16213

Open
@Angelodaniel

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions