Skip to content

Commit

Permalink
ref(javascript): Adust docs after renaming UserAgent integration to…
Browse files Browse the repository at this point in the history
… `HttpContext`
  • Loading branch information
Lms24 committed May 3, 2022
1 parent d31f719 commit 9ab5930
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
22 changes: 9 additions & 13 deletions src/docs/product/integrations/integration-platform/webhooks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ The following two fields are for [Alert Rule Action UI Components](/product/inte
"Breadcrumbs",
"GlobalHandlers",
"LinkedErrors",
"UserAgent"
"HttpContext"
],
"name": "sentry.javascript.browser",
"packages": [
Expand Down Expand Up @@ -684,7 +684,6 @@ Note: The webhook payload stack frame order lists the oldest frame to the most r
- type: string
- description: the slug of the project the comment's issue belongs to


##### data["comment_id"]

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


##### data["timestamp"]

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


#### Payload

```json
{
"action": "created",
"data": {
"comment": "adding a comment",
"project_slug": "sentry",
"comment_id": 1234,
"issue_id": 100,
"timestamp": "2022-03-02T21:51:44.118160Z"
"comment": "adding a comment",
"project_slug": "sentry",
"comment_id": 1234,
"issue_id": 100,
"timestamp": "2022-03-02T21:51:44.118160Z"
},
"installation": {"uuid": "eac5a0ae-60ec-418f-9318-46dc5e7e52ec"},
"actor": {"type": "user", "id": 1, "name": "colleen"}
"installation": { "uuid": "eac5a0ae-60ec-418f-9318-46dc5e7e52ec" },
"actor": { "type": "user", "id": 1, "name": "colleen" }
}
```


### Error

The `error.created` resource subscription is only available for Business plans and above.
Expand Down Expand Up @@ -892,7 +888,7 @@ If you've set up user identification you can find the user attributes under `dat
"Breadcrumbs",
"GlobalHandlers",
"LinkedErrors",
"UserAgent"
"HttpContext"
],
"name": "sentry.javascript.browser",
"packages": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Default Integrations
excerpt: ""
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."
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."
redirect_from:
- /platforms/javascript/integrations/default/
- /platforms/javascript/default-integrations/
Expand Down Expand Up @@ -122,11 +122,12 @@ document
});
```

### UserAgent
### HttpContext

_Import name: `Sentry.Integrations.UserAgent`_
_Import name: `Sentry.Integrations.HttpContext`_

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.
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.

### Dedupe

Expand Down

0 comments on commit 9ab5930

Please sign in to comment.