Bump software.amazon.lambda:powertools-cloudformation from 2.3.0 to 2.4.0
Type: Pull Request
State: Merged
Association: Contributor
Comments: 0
(2 months ago)
(about 2 months ago)
(about 2 months ago)
by docwho2
dependencies java
Bumps software.amazon.lambda:powertools-cloudformation from 2.3.0 to 2.4.0.
Release notes
Sourced from software.amazon.lambda:powertools-cloudformation's releases.
v2.4.0
Summary
We are excited to announce a new feature in Logger: Logger buffering. This new feature allows you to buffer logs for a specific invocation, and flush them automatically on error or manually as needed.
We also added GraalVM support for CloudFormation and Idempotency utilities, expanding native compilation capabilities for better performance and reduced cold start times.
⭐️ Thanks to
@ConnorKirk,@aryannikhil, and@kjswaruphfor their first-time contributions to this release!New Log Buffering feature
You can now enable log buffering by configuring the
BufferingAppenderin your logging configuration. This feature allows you to:
- Buffer logs at the
WARNING,INFO, andDEBUGlevels- Automatically flush logs on error or manually as needed
- Reduce CloudWatch costs by decreasing the number of emitted log messages
public class PaymentFunction implements RequestHandler<APIGatewayProxyRequestEvent, APIGatewayProxyResponseEvent> {private static final Logger LOGGER = LoggerFactory.getLogger(PaymentFunction.class);@Logging
public APIGatewayProxyResponseEvent handleRequest(final APIGatewayProxyRequestEvent input, final Context context) {
LOGGER.debug("Processing payment"); // this is buffered
LOGGER.info("Payment validation complete"); // this is not bufferedLOGGER.error(&quot;Payment failed&quot;); // this will flush the buffer automatically return new APIGatewayProxyResponseEvent().withStatusCode(500);}
}
Configuration options
Log buffering is configured through your logging framework configuration (Log4j2 or Logback) using the
BufferingAppender:
Option Description Default maxBytesMaximum size of the buffer in bytes 20480bufferAtVerbosityMinimum log level to buffer (more verbose levels are also buffered) DEBUGflushOnErrorLogWhether to flush buffer when an error is logged trueWhen log buffering is enabled, you can use the
@Loggingannotation withflushBufferOnUncaughtError = trueto automatically flush the buffer when an uncaught exception occurs. This enables you to have detailed logs from your application when you need them the most.Here is an example
log4j2.xmlconfiguration:
... (truncated)
Commits
3f51c39chore(ci): bump version to 2.4.03de08f9chore(ci): Set mockito SNAPSHOT version only for Graal profiles. (#2138)29e52c2chore(ci): Do not use Mockito SNAPSHOT version for release. (#2137)4c1520eSkip maven deployment for e2e test handlers. (#2131)a2eecaechore(ci): Fix circular dependency in dynamodb-local and maven packaging phas...b36d8bachore: bump org.yaml:snakeyaml from 2.4 to 2.5 (#2111)7c5acf5chore: bump io.github.ascopes:protobuf-maven-plugin from 3.8.1 to 3.9.0 (#2114)1ffc374chore: bump aws.sdk.version from 2.32.31 to 2.33.1 (#2115)7d79066chore: bump graalvm/setup-graalvm from 1.3.5 to 1.3.6 (#2116)eb8bc4echore: bump software.amazon.awscdk:aws-cdk-lib from 2.213.0 to 2.214.0 (#2117)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
1
1
+1
-1
Package Dependencies
maven
2.3.0 → 2.4.0
Minor
Technical Details
| ID: | 7381475 |
| UUID: | 2814588973 |
| Node ID: | PR_kwDOJJc3uM6nwzgt |
| Host: | GitHub |
| Repository: | docwho2/java-postgres-lambda-trigger |
| Merge State: | Unknown |