HttpContext

Attaches HTTP request information, such as URL, user-agent, referrer, and other headers to the event. (default)

Import name: Sentry.httpContextIntegration

This integration is enabled by default. If you'd like to modify your default integrations, read this.

This integration attaches HTTP request information, such as URL, user-agent, referrer, and other headers, to the event. It allows us to correctly catalog and tag events with specific OS, browser, and version information.

Copied
Sentry.init({
  integrations: [Sentry.httpContextIntegration()],
});
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").