Content-Length: 298683 | pFad | http://github.com/getsentry/sentry-javascript/issues/16634

98 @sentry/nextjs does not search for `instrumentation-client.js` · Issue #16634 · getsentry/sentry-javascript · GitHub
Skip to content

@sentry/nextjs does not search for instrumentation-client.js #16634

Closed
@Jimmy89

Description

@Jimmy89

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

9.30.0

Framework Version

Nextjs 15.3.3

Link to Sentry event

No response

Reproduction Example/SDK Setup

While reviewing the sentry/nextjs code in the search of a potential bug I stumbled upon this line of code:

For a quick overview:

  const potentialInstrumentationClientFileLocations = [
    ['src', 'instrumentation-client.ts'],
    ['src', 'instrumentation-client.js'],
    ['instrumentation-client.ts'],
    ['instrumentation-client.ts'], <-- This must be `.js`
  ];

Steps to Reproduce

See example

Expected Result

That instrumentation-client.js are also 'seen' by the sentry webpack code.

Actual Result

instrumentation-client.js is not scanned.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: http://github.com/getsentry/sentry-javascript/issues/16634

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy