← 返回首页
localstack-pro-samples/lambda-xray at master · localstack-samples/localstack-pro-samples · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Latest commit

 

History

History
 master
Top

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
View all files

README.md

Lambda X-Ray Tracing

Key Value
Services Lambda, X-Ray, CloudFormation
Integrations AWS CLI, AWS SAM
Categories Serverless; Observability

Introduction

A collection of samples demonstrating AWS X-Ray distributed tracing for Lambda functions using LocalStack. The samples show how to instrument Python Lambda functions with the AWS X-Ray SDK and AWS Powertools Tracer, and how to retrieve and inspect trace data locally.

Sub-samples

Sample Description
python-xray-sdk Lambda X-Ray tracing using the AWS X-Ray SDK for Python
python-powertools Lambda X-Ray tracing using AWS Powertools Tracer

Prerequisites

Start LocalStack

export LOCALSTACK_AUTH_TOKEN=<your-auth-token> localstack start -d

Refer to the individual sub-sample READMEs for deployment and invocation instructions.

License

This code is available under the Apache 2.0 license.

Footer

© 2026 GitHub, Inc.