Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add X-Ray Tracing using Natchez (attempt 2) #141

Merged
merged 2 commits into from
Dec 4, 2023
Merged

Add X-Ray Tracing using Natchez (attempt 2) #141

merged 2 commits into from
Dec 4, 2023

Conversation

bpholt
Copy link
Member

@bpholt bpholt commented Dec 4, 2023

This is the same as #137, but this time we're only capturing the inputs used to call AWS APIs and not attaching the responses to the traces. X-Ray has a 64KB maximum segment size, and previously the traces were too big to be sent successfully to X-Ray.

(See also typelevel/natchez#925.)

this uses the X-Ray backend directly instead of using OTel, because
AWS Lambda supports X-Ray by default, and including an OTel collector is
extra work. It sounds like including the collector can be done by
building it in as a Lambda Layer, but that's not something I've done
before, and I think this will work for now.
@bpholt bpholt merged commit e6e1e9c into main Dec 4, 2023
4 checks passed
@bpholt bpholt deleted the tracing branch December 4, 2023 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants