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
Support export OTel metrics to be EMF in starndard output (#437)
*Issue #, if available:*
Currently, OpenTelemetry (OTel) metrics users in AWS Lambda must export
metrics via synchronous calls. This often results in increased function
duration or lost metric data, due to how Lambda handles execution
lifecycle — particularly during the [freeze
phase](https://serverlessfolks.com/lambda-code-execution-freezethaw#heading-freeze).
*Description of changes:*
This PR introduces a new ConsoleEmfExporter, which exports OTel metrics
to standard output using the CloudWatch Embedded Metric Format (EMF).
In the Lambda environment, logs written to standard output are
automatically forwarded to CloudWatch by Lambda's built-in logging
agent. This makes ConsoleEmfExporter a simple and efficient way to
export OTel metrics in Lambda, avoiding the overhead and reliability
issues associated with synchronous metric export.
By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
---------
Co-authored-by: Jonathan Lee <[email protected]>
0 commit comments