Skip to content

Commit 9ab5930

Browse files
committed
ref(javascript): Adust docs after renaming UserAgent integration to HttpContext
1 parent d31f719 commit 9ab5930

File tree

2 files changed

+14
-17
lines changed
  • src
    • docs/product/integrations/integration-platform
    • platforms/javascript/common/configuration/integrations

2 files changed

+14
-17
lines changed

src/docs/product/integrations/integration-platform/webhooks.mdx

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ The following two fields are for [Alert Rule Action UI Components](/product/inte
408408
"Breadcrumbs",
409409
"GlobalHandlers",
410410
"LinkedErrors",
411-
"UserAgent"
411+
"HttpContext"
412412
],
413413
"name": "sentry.javascript.browser",
414414
"packages": [
@@ -684,7 +684,6 @@ Note: The webhook payload stack frame order lists the oldest frame to the most r
684684
- type: string
685685
- description: the slug of the project the comment's issue belongs to
686686

687-
688687
##### data["comment_id"]
689688

690689
- type: int
@@ -695,31 +694,28 @@ Note: The webhook payload stack frame order lists the oldest frame to the most r
695694
- type: int
696695
- description: the id of the issue
697696

698-
699697
##### data["timestamp"]
700698

701699
- type: datetime
702700
- description: when the comment was created, updated, or deleted
703701

704-
705702
#### Payload
706703

707704
```json
708705
{
709706
"action": "created",
710707
"data": {
711-
"comment": "adding a comment",
712-
"project_slug": "sentry",
713-
"comment_id": 1234,
714-
"issue_id": 100,
715-
"timestamp": "2022-03-02T21:51:44.118160Z"
708+
"comment": "adding a comment",
709+
"project_slug": "sentry",
710+
"comment_id": 1234,
711+
"issue_id": 100,
712+
"timestamp": "2022-03-02T21:51:44.118160Z"
716713
},
717-
"installation": {"uuid": "eac5a0ae-60ec-418f-9318-46dc5e7e52ec"},
718-
"actor": {"type": "user", "id": 1, "name": "colleen"}
714+
"installation": { "uuid": "eac5a0ae-60ec-418f-9318-46dc5e7e52ec" },
715+
"actor": { "type": "user", "id": 1, "name": "colleen" }
719716
}
720717
```
721718

722-
723719
### Error
724720

725721
The `error.created` resource subscription is only available for Business plans and above.
@@ -892,7 +888,7 @@ If you've set up user identification you can find the user attributes under `dat
892888
"Breadcrumbs",
893889
"GlobalHandlers",
894890
"LinkedErrors",
895-
"UserAgent"
891+
"HttpContext"
896892
],
897893
"name": "sentry.javascript.browser",
898894
"packages": [

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

Lines changed: 5 additions & 4 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 UserAgent, 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, 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,11 +122,12 @@ document
122122
});
123123
```
124124

125-
### UserAgent
125+
### HttpContext
126126

127-
_Import name: `Sentry.Integrations.UserAgent`_
127+
_Import name: `Sentry.Integrations.HttpContext`_
128128

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

131132
### Dedupe
132133

0 commit comments

Comments
 (0)