Execution Tags

Add a Tag to your functions' executions to find them faster

Overview

Execution tags allow you to find and investigate executions quickly by simply adding a tag to your Lambda functions’ execution.

Examples

Click on the Issue Details icon on the Issues page to see Execution Tags and additional information at a glance.

This will allow you to easily find a specific execution on the Explore page.

Configuring execution tags

To configure execution tags, follow these simple steps:

  1. From the command line, install the lumigo tracer
pip install lumigo_tracer
npm install @lumigo/tracer --save
  1. Add an execution tag to your handler’s code
from lumigo_tracer import add_execution_tag

add_execution_tag(“user_id”,user_id)
const lumigo = require('@lumigo/tracer');

OR if you are using Manual Tracing:
const lumigo = require('@lumigo/tracer')({ token: '<your_lumigo_token>' });

lumigo.addExecutionTag('<key>', '<value>');

And that’s it! Your execution tags will now appear in the invocation list.

Auto execution tags from the event

To configure execution tags that will be driven directly from the event, add an environment variable to the Lambda function with the name of the relevant key. We support only the python and node runtimes.
For example, to configure an auto tag from the key product_id, add the environment variable:

Key

Value

LUMIGO_AUTO_TAG

product_id

To configure multiple auto tags, such as product_id and source, add:

Key

Value

LUMIGO_AUTO_TAG

product_id,source

For a nested field, such as name inside the value of the key source, the syntax is:

Key

Value

LUMIGO_AUTO_TAG

source.name


Did this page help you?