Open
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
8.33.1
Framework Version
fastify 5.0.0
Link to Sentry event
No response
Reproduction Example/SDK Setup
No response
Steps to Reproduce
The automated dataloader integration added in getsentry#13664 breaks my code.
I have a dataloader like this:
export class ProductDataloader extends DataLoader {
constructor() {
super(async (globalIds: ReadonlyArray<string>) => {
return batchFn(globalIds);
});
}
public async loadByInternalId(id: number) {
const globalId = toGlobalId('Product', id);
return this.load(globalId);
}
}
Expected Result
That code worked OK until "@sentry/node": "8.30.0"
Actual Result
After upgrade to "@sentry/node": "8.31.0"
or later, calling loadByInternalId
method fails:
context.dataloaders.product.loadByInternalId is not a function