Skip to content

NextJS SDK creates http.server traces for resource requests #17346

@Lms24

Description

@Lms24

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nextjs

SDK Version

10.2.0

Framework Version

Next 14

Link to Sentry event

https://sentry-sdks.sentry.io/explore/traces/trace/2f9f6b5b05e44e467b0321a8d0e5ef5c/?mode=samples&pageEnd&pageStart&project=4509557728346112&source=traces&statsPeriod=1h&table=trace&timestamp=1754556896.217

Reproduction Example/SDK Setup

clone this repo

Steps to Reproduce

  1. npm run dev
  2. go to any page (tested on /sentry-example-page)
  3. Observe http.server traces for /favicon.ico

Expected Result

No trace for resource requests like favicon

Actual Result

http.server trace is started.

Note: resource.* child spans for resourced within browser-created traces (e.g. for favicon.ico) are expected. This is only a problem on the server-side.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions