Deployment Integrations
On-premise Integrations
Platform Integrations

Serverless Framework

Serverless Framework
Serverless Framework

Step 1: Install Thundra’s Serverless Plugin to Automatically Wrap Your Functions

npm install serverless-plugin-thundra

Step 2: Add Thundra's Serverless Plugin in serverless.yml File

After installing Thundra’s serverless plugin, specify it as a plugin for your serverless environment by adding it under the plugins section of your serverless.yml file.

serverless.yml
plugins:
- serverless-plugin-thundra

Step 3: Add the thundra Component to Custom

Add the thundra component under custom with the apiKey under that, as seen below:

serverless.yml
custom:
thundra:
apiKey: <YOUR THUNDRA API KEY>

Step 4: Add the thundra_apiKey to Environment Variables under the Provider Section in serverless.yml

serverless.yml
provider:
environment:
thundra_apiKey: <YOUR THUNDRA API KEY>

Step 5: Deploy and Test App

serverless deploy
serverless invoke --function functionName

Step 6: Monitor Your Function with Thundra

After generating your first invocation, the “Next” button will appear in the Invocation Monitor bar. Simply click the button to see monitoring data from your invocation.