From 4be30fc7bee8fc4faabcc13aa169ec0504af89ab Mon Sep 17 00:00:00 2001 From: Eduard Castellanos Date: Thu, 4 May 2023 19:12:52 -0500 Subject: [PATCH] fix(prisma): Only objects are captured --- sdk_contrib/prisma/src/captureModels.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk_contrib/prisma/src/captureModels.ts b/sdk_contrib/prisma/src/captureModels.ts index 49913b4e..0619951f 100644 --- a/sdk_contrib/prisma/src/captureModels.ts +++ b/sdk_contrib/prisma/src/captureModels.ts @@ -12,7 +12,7 @@ export function captureModels( segment = AWSXRay.resolveSegment(segment); } - if (!attr || attr instanceof Function) { + if (typeof attr !== 'object') { return attr; }