Thundra

Monitor and debug your AWS Lambda functions with LocalStack and Thundra.

Thundra logo

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):

  1. Resources:
  2. MyFunction:
  3. Type: AWS::Serverless::Function
  4. Properties:
  5. // other function properties
  6. Environment:
  7. Variables:
  8. // other environment variables
  9. THUNDRA_APIKEY: <YOUR-THUNDRA-API-KEY>
  1. const myFunction = new Function(this, "MyFunction", {
  2. ..., // other function properties
  3. environment: {
  4. ..., // other environment variables
  5. THUNDRA_APIKEY: <MY-THUNDRA-API-KEY>
  6. }
  7. });
  1. functions:
  2. MyFunction:
  3. // other function properties
  4. environment:
  5. // other environment variables
  6. 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)