`HttpContext` does not exist in `@sentry/nextjs`
See original GitHub issueIs there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
SDK Version
7.21.0
Framework Version
Next.js v12.3.0
Link to Sentry event
No response
Steps to Reproduce
By the docs, HttpContext
should exist in @sentry/nextjs
. This is not true.Http
exists in the package.
Expected Result
Expected HttpContext
Actual Result
Either is the implementation erroneous or the docs are wrong.
Extra
I’ve noticed that Http
is available in @sentry/node
and HttpContext
in @sentry/browser
.
Which one applies to Next.js, since Next.js is a server and client-side framework?
Moreover, the documentation fails to mention what the differences between Http
and HttpContext
are, since the descriptions are very vague.
Issue Analytics
- State:
- Created 10 months ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Default Integrations for Next.js
This integration attaches HTTP request information, such as URL, user-agent, referrer, and other headers to the event.
Read more >Sentry Not Logging Errors in WebForms App
NET 4.7.2. I installed Sentry 2.1.1 via NuGet. When my application hits an unhandled exception, the exception should be captured and logged to ......
Read more >Update dependency @sentry/browser to v7 - GitLab.org
This release does not change or remove any top level public API methods ( captureException , captureMessage ), and only requires changes to ......
Read more >Options - Sentry module
Options can be passed to Sentry using either environment variables. ... message: ` This will throw an error because captureEvent doesn't exists on...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I see - maybe avoid “hitting two birds with one stone” and separate
@sentry/nextjs
into@sentry/nextjs/server
&@sentry/nextjs/client
to reduce confusion.This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you label it
Status: Backlog
orStatus: In Progress
, I will leave it alone … forever!“A weed is but an unloved flower.” ― Ella Wheeler Wilcox 🥀