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
That lambda layer comes with an incredibly heavy performance penalty.
It doesn't block, but it does consume compute/memory resources and takes forever to startup[0][1]. To be fair, Rotel is promising in this regard[2].
[0]: https://github.com/open-telemetry/opentelemetry-lambda/issue...
[1]: https://github.com/aws-observability/aws-otel-lambda/issues/...
[2]: https://github.com/rotel-dev/rotel
That lambda layer comes with an incredibly heavy performance penalty.
It doesn't block, but it does consume compute/memory resources and takes forever to startup[0][1]. To be fair, Rotel is promising in this regard[2].
[0]: https://github.com/open-telemetry/opentelemetry-lambda/issue...
[1]: https://github.com/aws-observability/aws-otel-lambda/issues/...
[2]: https://github.com/rotel-dev/rotel