Skip to content

Commit 6bd3fe4

Browse files
Lms24adinauer
authored andcommitted
ref(js): Add note about old name of HttpContext integration (#5099)
Adds a note to the HttpContext integration of the JS SDK explaining that it was called UserAgent before v7. This ensures that pre-v7 users can find correct information about their default integrations.
1 parent 22f62a0 commit 6bd3fe4

File tree

1 file changed

+11
-2
lines changed
  • src/platforms/javascript/common/configuration/integrations

1 file changed

+11
-2
lines changed

src/platforms/javascript/common/configuration/integrations/default.mdx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Default Integrations
33
excerpt: ""
4-
description: "Learn more about system integrations Dedupe, InboundFilters, FunctionToString, Breadcrumbs, GlobalHandlers, LinkedErrors, and HttpContext, that are enabled by default to integrate into the standard library or the interpreter itself."
4+
description: "Learn more about system integrations Dedupe, InboundFilters, FunctionToString, Breadcrumbs, GlobalHandlers, LinkedErrors, and HttpContext (UserAgent), that are enabled by default to integrate into the standard library or the interpreter itself."
55
redirect_from:
66
- /platforms/javascript/integrations/default/
77
- /platforms/javascript/default-integrations/
@@ -122,10 +122,19 @@ document
122122
});
123123
```
124124

125-
### HttpContext
125+
### HttpContext (previously: UserAgent)
126126

127127
_Import name: `Sentry.Integrations.HttpContext`_
128128

129+
<Note>
130+
131+
Before version 7.0.0 of the Sentry SDK, this integration was called `UserAgent`.
132+
It was renamed because the integration handles more than just user-agent data.
133+
134+
_Import name: `Sentry.Integrations.UserAgent`_
135+
136+
</Note>
137+
129138
This integration attaches HTTP request information, such as URL, user-agent, referrer and other headers to the event.
130139
It allows us to correctly catalog and tag events with specific OS, browser, and version information.
131140

0 commit comments

Comments
 (0)