Skip to content

Commit

Permalink
Fix code example for Sentry JavaScript DataLoader() (#11902)
Browse files Browse the repository at this point in the history
It used a constructor syntax but this throws a `TypeError: Sentry.dataloaderIntegration is not a constructor`.
  • Loading branch information
thom4parisot authored Jan 20, 2025
1 parent b5bb757 commit 9d4518d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The `dataloaderIntegration` adds instrumentation for the `dataloader` library to

```javascript
Sentry.init({
integrations: [new Sentry.dataloaderIntegration()],
integrations: [Sentry.dataloaderIntegration()],
});
```

Expand Down

0 comments on commit 9d4518d

Please sign in to comment.