Open micro-jumbo opened 1 day ago
The error message is a bit odd, but it means that the Node.js assert module is not supported by LLRT at this time. The modules that are supported at this time are listed below. https://github.com/awslabs/llrt?tab=readme-ov-file#compatibility-matrix
I just checked the call chain and aws-xray-sdk-core
calls cls-hooked
, which uses assert
.
What would be the best path to follow if I wanted to provide a shim for the assert
(or any other) module to llrt
?
Hi, thanks for your report. It's a bit hard to tell, but for one the assert module is not supported. I also suspect that aws-xray-sdk-core might use a lot of node APIs not yet implemented. I'll take a closer look once I get the opportunity
Hi,
I have this small lambda function:
which works great.
But when I want to capture calls to S3 with X-Ray traces using the
aws-xray-sdk-core
library:it starts failing with error:
Lambda function is created using
cdk-lambda-llrt
cdk construct:Any idea what the problem might be and how to solve it?