Skip to content

Commit

Permalink
fix(prisma): Only objects are captured
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardMcfly committed May 5, 2023
1 parent ec8c731 commit 4be30fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk_contrib/prisma/src/captureModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function captureModels(
segment = AWSXRay.resolveSegment(segment);
}

if (!attr || attr instanceof Function) {
if (typeof attr !== 'object') {
return attr;
}

Expand Down

0 comments on commit 4be30fc

Please sign in to comment.