Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@

### Fixes

- Exclude additional server-only modules (`express`, `postgresjs`, `requestdata`, `consola`, `spanStreaming`) from native bundles ([#6263](https://github.com/getsentry/sentry-react-native/pull/6263))
- Enable fetch instrumentation when Expo SDK 56's native `expo/fetch` is active ([#6226](https://github.com/getsentry/sentry-react-native/pull/6226))

### Fixes

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the duplicate section from previous merge


- Resolve `sentry-cli` in isolated dependency layouts ([#6242](https://github.com/getsentry/sentry-react-native/pull/6242))

### Internal
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/js/tools/metroconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ export function withSentryFeedbackResolver(config: MetroConfig, includeWebFeedba
* the `moduleName` will be `./integrations/mcp-server/index.js`.
*/
const SERVER_ONLY_MODULE_RE =
/\/(mcp-server|integrations\/http|tracing\/(vercel-ai|openai|anthropic-ai|google-genai|langchain|langgraph)|utils\/ai)(\/|$)/;
/\/(mcp-server|integrations\/(http|express|postgresjs|requestdata|consola|spanStreaming)|tracing\/(vercel-ai|openai|anthropic-ai|google-genai|langchain|langgraph)|utils\/ai)(\/|\.js|$)/;

function isFromSentryCore(originModulePath: string): boolean {
return originModulePath.includes('@sentry/core');
Expand Down
5 changes: 5 additions & 0 deletions packages/core/test/tools/metroconfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,11 @@ describe('metroconfig', () => {
describe.each([
['./integrations/mcp-server/index.js'],
['./integrations/http/index.js'],
['./integrations/express.js'],
['./integrations/postgresjs.js'],
['./integrations/requestdata.js'],
['./integrations/consola.js'],
['./integrations/spanStreaming.js'],
['./tracing/openai/index.js'],
['./tracing/anthropic-ai/index.js'],
['./tracing/google-genai/index.js'],
Expand Down
Loading