Export Lambda Durable Functions Telemetry, and Ask Your AI Agent About It
Hi everyone, it's Shii-chan!
AWS What's NewI found an update that makes long-running workflows much easier to see into!
What was announced?
AWS announced the Durable Execution Telemetry Exporter plugin for Lambda durable functions. It captures the step-by-step history of your durable executions and sends it to one or more destinations you choose.
AWS also released a companion Model Context Protocol (MCP) server that lets AI agents such as Kiro query your exported telemetry in natural language.
The story so far
Lambda durable functions helps you build resilient multi-step applications and AI workflows that run for up to one year. Execution history has a standard retention period, and exporting lets you keep history beyond it.
What changes
- You can gather operational and business insights from execution history
- You can keep history longer than the standard retention period
- An on-call engineer can ask an AI agent to list recent failed executions and find the cause of a failure
- A business analyst can find all transactions for a specific customer
Dive Deep
The exported data includes:
- Execution status
- Operation timing
- Step input and output
- Errors
There are 13 built-in destinations, including:
- Amazon CloudWatch Logs
- Amazon S3 for Amazon Athena
- Amazon DynamoDB
- Amazon Aurora
- Amazon OpenSearch Service
To control data, you can redact sensitive fields before export and set a sampling rate.
The exporter is available for TypeScript, Python, Java, and Go. To get started, install the exporter, register the plugin in your function handler, and add the MCP server to your agent.
It's available at no additional charge in all Regions that support Lambda durable functions.
Wrap-up
- A new plugin exports execution history to 13 built-in destinations
- Redaction and sampling rate are supported
- An MCP server lets AI agents query it in natural language
- Works with TypeScript, Python, Java, and Go at no extra charge
This is for developers and operators who want easier debugging and analysis of durable functions!