Skip to content

Commit 9d4518d

Browse files
authored
Fix code example for Sentry JavaScript DataLoader() (#11902)
It used a constructor syntax but this throws a `TypeError: Sentry.dataloaderIntegration is not a constructor`.
1 parent b5bb757 commit 9d4518d

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
@@ -34,7 +34,7 @@ The `dataloaderIntegration` adds instrumentation for the `dataloader` library to
3434

3535
```javascript
3636
Sentry.init({
37-
integrations: [new Sentry.dataloaderIntegration()],
37+
integrations: [Sentry.dataloaderIntegration()],
3838
});
3939
```
4040

0 commit comments

Comments
 (0)