pydantic / logfire

Uncomplicated Observability for Python and beyond! 🪵🔥
https://docs.pydantic.dev/logfire/
MIT License
1.53k stars 45 forks source link

AWS Lambda Integration #120

Open raunakdoesdev opened 1 month ago

raunakdoesdev commented 1 month ago

Description

Datadog gives me the following dashboard for AWS lambda invocations: CleanShot 2024-05-04 at 09 55 48@2x

It's very helpful for debugging issues with my lambda running out of time, having very high cold starts, or running out of memory.

I imagine a logfire span-esque visualization for the Lambda invocations. This, combined with the existing FastAPI integration would be godly. Would be able to see all of the logs I want in one place :)

The issue is the implementation for this may not be that easy. Datadog installs some kind of additional binary and a handler that wraps the default Lambda handler to make this work: https://docs.datadoghq.com/serverless/aws_lambda/installation/python/?tab=terraform

Best of luck and let me know if I can help with this in any way!

samuelcolvin commented 1 month ago

Thanks so much, I'll discuss with the team.