Deployment Integrations
On-premise Integrations
Platform Integrations


With Thundra's Node.js agent, you can add custom tags to your invocations or your applications which will let you eventually better filter the data. Invocation tags are added only to Invocation data type, application tags are global and they are automatically added to Invocation, Metric, Trace, Span, and Log data.‌

Adding Invocation Tags

You can add custom tags to your invocation with methods in InvocationSupportmodule. Below are the functions that can be used in the module:

static setTag(key: string, value: any): void
static getTag(key: string): any
static removeTag(key: string): void
static setTags(keyValuePairs: {[key: string]: any }): void
static removeTags(): void
static setError(exception: any): void

Below example shows how to tag a lambda invocation.Example Lambda Handler

Setting an invocation tag
const thundra = require("@thundra/core");
exports.handler = thundra()((event, context,callback) => {
thundra.InvocationSupport.setTag('userName', 'foo');
callback(null, 'Hello Thundra!');

Adding Application Tags

You can add application tags via environment variables. All application tags which start with thundra_agent_lambda_application_tag_ are parsed by Thundra's Node.js agent and the part after thundra_agent_lambda_application_tag_ prefix is used as the key of the tag and the value of the environment variable becomes the value of the tag. For example, thundra_agent_lambda_application_tag_floatField with value 12.123 will add an application tag to all data with key floatField and value 12.123.‌

Below example shows how to add application tags with various data types to a Lambda invocation.

Setting application tags through the Lambda console