Sam Hulick
08/26/2021, 10:08 PMSam Hulick
08/26/2021, 10:28 PMSam Hulick
08/26/2021, 10:28 PMthdxr
08/26/2021, 10:55 PMthdxr
08/26/2021, 10:55 PMthdxr
08/26/2021, 10:55 PMSam Hulick
08/26/2021, 10:58 PMrequire('source-map-support').install()
Sam Hulick
08/26/2021, 11:00 PMSam Hulick
08/26/2021, 11:01 PMSam Hulick
08/27/2021, 12:24 AM/var/task/src/sub1/sub2/thing.js
. but.. with SST I just get /var/task/thing.js
. and so when it reports errors to Sentry, it doesn’t have the full path and hence doesn’t match the source maps there, which are full paths.. ~/src/sub1/sub2/thing.js.map
Sam Hulick
08/27/2021, 12:25 AM0 08-26-2021 19:24 src/
0 08-26-2021 19:24 src/functions/
0 08-26-2021 19:24 src/functions/hello/
5186 08-26-2021 19:24 src/functions/hello/handler.js.map
1220 08-26-2021 19:24 src/functions/hello/handler.js
thdxr
08/27/2021, 12:25 AMthdxr
08/27/2021, 12:25 AMSam Hulick
08/27/2021, 12:25 AMSam Hulick
08/27/2021, 12:26 AMsrc/wow/thing.js
and src/hey/thing.js
, one would overwrite the other.. so the folder structure is importantthdxr
08/27/2021, 12:29 AMthdxr
08/27/2021, 12:29 AMthdxr
08/27/2021, 12:30 AMthdxr
08/27/2021, 12:30 AMSam Hulick
08/27/2021, 12:31 AMSam Hulick
08/27/2021, 12:38 AMSam Hulick
08/27/2021, 12:39 AMSam Hulick
08/27/2021, 12:39 AMSentry.init
.. I found the simplest way everSam Hulick
08/27/2021, 12:40 AMSentry.init()
options:
beforeSend: async event => {
const release = await getSsmParameter('/global/sentryRelease');
event.release = release;
return event;
},
why did I not think of this before? 😄