awslabs / awslabs/aws-embedded-metrics-python

Ability to automatically flush log before impending Lambda timeout

Open
#36 3 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
231
Forks
44
PR merge metrics
No merged PRs in 30d

Description

One of the frustrating things about running into a Lambda timeout when using structured logs is that nothing is logged. Ideally, when using `metric_scope`, it should be able to flush the log before the timeout expires using `context.get_remaining_time_in_millis()`, perhaps setting a property indicating this was the case (since there's a possibility the function actually does complete after the flush occurs and some logging was lost)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.