You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I recently discovered that the metrics I was emitting from some generator functions were not actually being emitted and after some digging I found that the reason is that @metric_scopedoesn't actually iterate the generator, so logger.flush() occurs before any consumer attempts to use the generator.
Is this expected behavior or actually a bug?
The text was updated successfully, but these errors were encountered:
My team is looking at lambda streaming using a custom runtime (as the Python runtime does not support streaming). The lack of this feature means aws-embedded-metrics cannot be used for streaming, where the streamed response is provided by a generator function.
Hello,
I recently discovered that the metrics I was emitting from some generator functions were not actually being emitted and after some digging I found that the reason is that
@metric_scope
doesn't actually iterate the generator, sologger.flush()
occurs before any consumer attempts to use the generator.Is this expected behavior or actually a bug?
The text was updated successfully, but these errors were encountered: