question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`HttpContext` does not exist in `@sentry/nextjs`

See original GitHub issue

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/nextjs

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:open
  • Created 10 months ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
larsqacommented, Dec 2, 2022

I see - maybe avoid “hitting two birds with one stone” and separate @sentry/nextjs into @sentry/nextjs/server & @sentry/nextjs/client to reduce confusion.

0reactions
github-actions[bot]commented, Dec 24, 2022

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 or Status: In Progress, I will leave it alone … forever!


“A weed is but an unloved flower.” ― Ella Wheeler Wilcox 🥀

Read more comments on GitHub >

github_iconTop 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 >
@sentry/types | Yarn - Package Manager
Fast, reliable, and secure dependency management.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found