Skip to content

Commit 5d04bd6

Browse files
authored
Fix code example for Sentry JavaScript DataLoader()
It used a constructor syntax but this throws a `TypeError: Sentry.dataloaderIntegration is not a constructor`.
1 parent 14b9138 commit 5d04bd6

File tree

1 file changed

+1
-1
lines changed
  • docs/platforms/javascript/common/configuration/integrations

1 file changed

+1
-1
lines changed

docs/platforms/javascript/common/configuration/integrations/dataloader.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The `dataloaderIntegration` adds instrumentation for the `dataloader` library to
3333

3434
```javascript
3535
Sentry.init({
36-
integrations: [new Sentry.dataloaderIntegration()],
36+
integrations: [Sentry.dataloaderIntegration()],
3737
});
3838
```
3939

0 commit comments

Comments
 (0)