Skip to content

Commit d88d223

Browse files
committed
add section for integrations API
1 parent 8e14fe8 commit d88d223

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,23 @@ integrations out of the box.
6868
- [Performance Monitoring API](./MIGRATION.md#performance-monitoring-api)
6969
- [Performance Monitoring Integrations](./MIGRATION.md#performance-monitoring-integrations)
7070

71+
### Functional Integrations
72+
73+
Integrations are now simple functions instead of classes. Class-based integrations
74+
[have been removed](./MIGRATION.md#removal-of-class-based-integrations):
75+
76+
```javascript
77+
// old (v7)
78+
Sentry.init({
79+
integrations: [new Sentry.BrowserTracing()],
80+
});
81+
82+
// new (v8)
83+
Sentry.init({
84+
integrations: [Sentry.browserTracingIntegration()],
85+
});
86+
```
87+
7188
### Package removal
7289

7390
The following packages have been removed or replaced and will no longer be published:

0 commit comments

Comments
 (0)