FAQ

How can I use Thundra with my Chalice application?

Instrumentation and configuration settings for Chalice are explained here.

How can I create custom spans ?

You can use manual instrumentation to create spans for code you would like to monitor. How to perform manual instrumentation for python agent is explained here.

How can I filter out my functions/invocations with custom labels while searching?

You can add application and invocation tags using tagging. Then on the Query Bar you can use the tags you added to filter your functions/invocations.

For example let's say that you have functions with different versions and you need to query a specific version.You can add application tag version as key and value as a string value, say "1.2.1". Environment variable for this should be as follows:

thundra_agent_lambda_application_tag_version:"1.2.1"

Then, on the query bar on Function List page you can search with that filter:

If you want to search invocations on some label, you can add invocations tags as in the example here. For our example above with version the line we set tag should be as follows:

invocation_support.set_tag("version", "1.2.1")

Then search on the query bar on Function Details page with that filter as in the following:

I am getting rate limit errors, how can I fix that?

You can use sampling described in here. With configuring intelligent sampling, you can sample your data without losing interesting data. You can also have a look at this blog to have more information about intelligent sampling.