Execution Tags

Execution Tags allow you to dynamically add dimensions to your Lambda function invocations so that they can be identified, searched for, and filtered in Lumigo.

They can be utilized to find specific invocations and create custom widgets, helping you simplify the complexity of monitoring distributed applications.

Skip to the Quick Bytes video for Execution Tags


AWS Lambda feature

Executions tags are available for AWS Lambda functions. Stay tuned for support in Containers!

Filter by Execution Tags to easily find specific invocations on the Explore page and create Custom Widgets.

27082708 27082708

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


Configuring Execution Tags

From the command line, install the lumigo tracer

pip install lumigo_tracer
npm install @lumigo/tracer --save

Adding for Auto-Traced functions
Add an execution tag to your handler’s code

from lumigo_tracer import add_execution_tag

const lumigo = require('@lumigo/tracer');

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

Adding for Manual traced functions

from lumigo_tracer import lumigo_tracer
from lumigo_tracer import add_execution_tag

def my_lambda(event, context):
    print('I can finally troubleshoot!')
const lumigo = require('@lumigo/tracer')({ token: '<your_lumigo_token>' });

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

To find out more about Manual Tracing visit AWS Lambda Manual Tracing

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:





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





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





Execution Tags naming limits and requirements

  • Execution tags can be added only to a traced function
  • The maximum number of tags is 50.
  • Key length must be between 1 and 50.
  • Value length must be between 1 and 70.

Lumigo Quick Bytes - Execution Tags

Did this page help you?