logoalt Hacker News

bilalqyesterday at 8:58 AM3 repliesview on HN

In a lambda runtime, are you blocking client responses until logs/traces/metrics flush?


Replies

ojkellyyesterday at 12:10 PM

Use the lambda layer [0] it sends the telemetry after the response is sent, so it doesn’t block.

[0] https://github.com/open-telemetry/opentelemetry-lambda

show 1 reply
Game_Enderyesterday at 11:08 AM

This is what I have done with CLI apps the directly send to the OTEL vendor. It works great.

cyberaxyesterday at 4:24 PM

I don't use Lambda anymore, but yes. I submitted traces to AWS XRay in a background goroutine with a small timeout.

show 1 reply