Thundra
Monitor and debug your AWS Lambda functions with LocalStack and Thundra.
Overview
This guide describes how you can monitor and debug your AWS Lambda functions with Thundra.
Integrating Thundra with LocalStack
Supported languages
Currently only Node.js, Python and Java Lambdas are supported in this integration - support for other runtimes (.NET, Go) is coming soon.
LocalStack comes with out-of-the-box support for Thundra. Simply obtain a Thundra API key here and add it to your Lambda function’s environment variables (THUNDRA_APIKEY
):
Resources:
MyFunction:
Type: AWS::Serverless::Function
Properties:
// other function properties
Environment:
Variables:
// other environment variables
THUNDRA_APIKEY: <YOUR-THUNDRA-API-KEY>
const myFunction = new Function(this, "MyFunction", {
..., // other function properties
environment: {
..., // other environment variables
THUNDRA_APIKEY: <MY-THUNDRA-API-KEY>
}
});
functions:
MyFunction:
// other function properties
environment:
// other environment variables
THUNDRA_APIKEY: <YOUR-THUNDRA-API-KEY>
After invoking your AWS Lambda function, you can inspect the invocations and traces in the Thundra Console. You can find more details in the Thundra documentation.
Further Reading
For a complete example, you may check our blog post “Test Monitoring for LocalStack Apps with Thundra” and take a look at the example project here.
Last modified October 11, 2021: minor: rename folder Integrations->integrations (68c86019)