Skip to content

[nextjs] Handle more cases when auto-instrumenting tracing #5827

Closed
@lobsterkatie

Description

@lobsterkatie

There are a number of cases (some edge-case-y, some not) where we still don't fully support tracing in the nextjs SDK.

  • Have spans for getInitialProps when run client-side
  • Handle non-props responses from data-fetchers (redirects, etc)
  • Add instrumentation for how long server-side rendering takes
  • Support tracing when using a custom server (related: @sentry/nextjs and nextjs custom server #3782)
  • Automatically wrap getStaticProps (Wrapper exists but we don't have access to the request. Is this solvable? Do we even care, given that this generally runs in the background?)
  • Middleware support (this is a bigger conversation - tracked in Next.js middleware support #4206)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions