v1.0.0
Changes
With this release, we move from beta to General Availability 🎉🎉🎉!
Quick links: 📜Documentation | Maven | Feature request | Bug Report | Detailed blog post
Tracing
Provides a simple way to send traces from functions to AWS X-Ray. It provides visibility into function calls, interactions with other AWS services, or external HTTP requests. You can add annotations to traces to allow filtering based on key information. For example, when using @Tracing, it creates a ColdStart annotation for you. You can easily group and analyze traces where there was an initialization overhead.
Logging
Based on log4j2, outputs structured JSON. It allows you to pass in strings, or more complex objects, and takes care of serializing the log output. Common use cases—such as logging the Lambda event payload and capturing cold start information—are handled for you. You can also include your own custom keys to the logger at any time.
Metrics
Makes collecting custom metrics from your application simple, without the need to make synchronous requests to external systems. This functionality, which is powered by Amazon CloudWatch Embedded Metric Format (EMF), allows for capturing metrics asynchronously. Again, convenient functionality provides for common cases, such as validating metrics against CloudWatch EMF specification and tracking cold starts.
Helper utilities
Utilities removes most of the heavy lifting that customers have to do across a wide range of use cases. New utilities get added based on community feedback. If you have an idea, feel free to open an RFC. Some of the utilities already made available as part of GA:
Sample projects using Powertools Java
🧐What's New for Beta customers
If you've been following the Beta, GA version is released with all the functionalities in our latest beta release v0.6.0-beta
Breaking changes from v0.6.0-beta to GA:
We have renamed some of the annotations to make it more concise and consistent in usage. Refer this issue for more details.
Beta | GA |
---|---|
PowertoolsTracing | Tracing |
PowertoolsLogging | Logging |
PowertoolsMetrics | Metrics |
LargeMessageHandler | SqsLargeMessage |
SqsBatchProcessor | SqsBatch |
All the functionality remains the same. So for beta customers, it should be just about fixing to correct imports.