Deployment Integrations
On-premise Integrations
Platform Integrations

Thundra Java Library

Thundra Java Library
Thundra Java Library

Step 1: Add Thundra Repo

Add Thundra repo (repo.thundra.io) to your repositories:

<repositories>
<repository>
<id>thundra-releases</id>
<name>Thundra Releases</name>
<url>https://repo.thundra.io/content/repositories/thundra-releases</url>
</repository>
</repositories>

Step 2: Install Thundra’s Java Library

Add Thundra dependency:

<dependency>
<groupId>io.thundra.agent</groupId>
<artifactId>thundra-agent-lambda-all</artifactId>
<type>pom</type>
<version>${thundra.version}</version>
</dependency>

You can use the version shown below instead of ${thundra.version}.

Step 3: Deploy Your Function to AWS Lambda

Bundle all your Java module files and any additional required Java libraries/dependencies, and then upload it to the AWS Lambda console using the “Upload a.zip file” option for the code entry type.

Step 4: Configure Your Function

  • Add the API key to the environment variables on the Amazon Lambda console.

  • Configure the handler by setting the handler to io.thundra.agent.lambda.core.handler.ThundraLambdaHandler. Set the thundra_agent_lambda_handler environment variable value to your handler.

Step 5: Invoke Your Deployed Function

Clicking on the “Test” button, which is located on the top right of the AWS console, will result in an invocation of your function (after you have configured test data per the specifications of your function).

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.