Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
Add SDK features to event payload (#1244)
Browse files Browse the repository at this point in the history
Add a new field features to the sdk event payload, which is handy for
tracking the adoption of features.
  • Loading branch information
philipphofmann committed Apr 24, 2024
1 parent e9c676a commit da2bdf8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/docs/sdk/event-payloads/sdk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ have all enabled integrations, including default integrations. Default
integrations are included because different SDK releases may contain different
default integrations.

`features`

: _Optional_. A list of feature names identifying enabled SDK features. This list
should contain all enabled SDK features. On some SDKs, enabling a feature in the
options also adds an integration. We encourage tracking such features with either
integrations or features but not both to reduce the payload size.

`packages`

: _Optional_. A list of packages that were installed as part of this SDK or the
Expand All @@ -73,6 +80,7 @@ attributes for simplicity.
"name": "sentry.javascript.react-native",
"version": "1.0.0",
"integrations": ["redux"],
"features": ["capture_failed_requests"],
"packages": [
{
"name": "npm:@sentry/react-native",
Expand Down

0 comments on commit da2bdf8

Please sign in to comment.