Skip to content

Next.js Edge Runtime fetch tracing #6804

@lforst

Description

@lforst

Problem Statement

The Next.js SDK currently doesn't trace fetch calls on the edge runtime:

  • No spans for outgoing requests
  • No trace headers on outgoing requests

Solution Brainstorm

A quick test showed that using our browser implementation to patch fetch works for local builds but doesn't on Vercel.

Potential solutions:

  • Find a solution to monkey patch fetch through collaboration with Vercel
  • Wrap individual fetch calls via a webpack loader + AST magic

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions