Thundra allows users to trace their Lambda functions by plugging instrumentation libraries into their functions. Some users also want to have insights about their serverless application with minimum effort. If you're one of these users, you can plug Thundra into your AWS account and start monitoring all of your functions in your account within a couple of minutes.
After you create your Thundra account, you will be able to access the Thundra application. At this point, you don’t need to get your hands dirty with the integration. Before that, you can have a glimpse of the application with sample data.
In order to get more of the sample data, you can take a guided tour about integrating your application into Thundra APM.
In order to start connecting your application, you can click on the “here” text and see the instructions, or, you can click on the rocket sign from the sidebar.
At this step, a page will be displayed that asks how you would like to connect your application. You can either Connect Your AWS account or Instrument Your Application Manually options and we will go through with some examples.
a ) Connect Your AWS Account
Step 1: You can connect your AWS account and add our CloudFormation stack into your AWS easily. In order to do that click “Connect Thundra'', as shown below.
Step 2: You will be led to a page informing you about what needs to be done when you click the “Connect Thundra” button below. Make sure that your AWS is ready to connect.
Thundra will help you create a CloudFormation stack when you click on the “Connect Thundra'' button. The CloudFormation creation wizard will be visible displaying information about the Thundra stack. You need to check the box called I Acknowledge that AWS CloudFormation might create IAM resources to allow access. When creation is finished, you are able to display a list of your functions.
If you’re not a technical team member with access to your AWS account, you can invite a developer by entering their email address. We're sure that you will have someone on your team who can help you to connect with Thundra.
At this point, it's worth mentioning that you can skip the "Connect Thundra" step, and manually instrument your functions.
You can select functions that you want to monitor on Thundra from the list. You may have a lot of functions, so you have the capability to search through them by runtime or name using the search bar. If you forget to select some functions, don't worry. You can always alter subscriptions of your Lambda functions from the AWS tab on the settings page.
By clicking “Autosubscribe to new function” you can let Thundra monitor your new functions as you define them. If you already have an account on Thundra, you can also connect with Thundra. First, navigate to the settings page under "User" and go to the AWS tab. On this page, you can also add new AWS accounts and you will go through the same subscription process.
b) Manually Instrument Your Application
Step 1: If you don’t want to give access to your AWS account, you can always manually instrument your application to monitor with Thundra. Thundra supports different types of languages, platforms, web frameworks, and applications. You can select your platform from the list and follow the basic instructions to help you to start Thundra effortlessly.
Step 2 - After choosing your application, follow the instructions and complete your instrumentation! According to your preferences, you will be led to a page similar as follows: