Skip to content

fix(tracing): Don't set method multiple times #8014

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 3, 2023

Conversation

AbhiPrasad
Copy link
Member

Should fix nextjs tests (not sure how they snuck into develop branch).

Instead of blindly spreading handlerData.fetchData we explicitly take the url and method.

@AbhiPrasad AbhiPrasad force-pushed the abhi-fix-nextjs-fetch-test branch from e1a4f77 to 76f5398 Compare May 2, 2023 13:23
@AbhiPrasad AbhiPrasad requested review from mydea and Lms24 May 2, 2023 13:23
@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2023

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 21.02 KB (-0.02% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 65.66 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 19.56 KB (+0.01% 🔺)
@sentry/browser - ES6 CDN Bundle (minified) 58.12 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 21.17 KB (0%)
@sentry/browser - Webpack (minified) 69.07 KB (0%)
@sentry/react - Webpack (gzipped + minified) 21.19 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 49.05 KB (+0.03% 🔺)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 28.63 KB (+0.1% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 26.84 KB (+0.05% 🔺)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 46.87 KB (+0.15% 🔺)
@sentry/replay - Webpack (gzipped + minified) 40.67 KB (+0.19% 🔺)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 65.71 KB (+0.13% 🔺)
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 58.64 KB (+0.13% 🔺)

# Next.js v13 requires at least Node v14
if [ "$NODE_MAJOR" -lt "14" ] && [ "$NEXTJS_VERSION" -ge "13" ]; then
# Next.js v13 requires at least Node v16
if [ "$NEXTJS_VERSION" -ge "16" ] && [ "$NEXTJS_VERSION" -ge "15" ] && [ "$NODE_MAJOR" -lt "14" ] && [ "$NEXTJS_VERSION" -ge "13" ]; then
Copy link
Member Author

Choose a reason for hiding this comment

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

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) May 3, 2023 10:06
"testCommand": "pnpm test:dev"
}
],
"tests": [],
Copy link
Member Author

Choose a reason for hiding this comment

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

For now we disable these tests, we can re-add once we fix them.

@AbhiPrasad AbhiPrasad merged commit f1c8d36 into develop May 3, 2023
@AbhiPrasad AbhiPrasad deleted the abhi-fix-nextjs-fetch-test branch May 3, 2023 10:54
billyvg pushed a commit that referenced this pull request May 5, 2023
Co-authored-by: Luca Forstner <luca.forstner@sentry.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants