Multiple values and new fields available for the metric logging pattern
The metric part of the logging schema is adjusted according to updated YaaS requirements. It is recommended that you now log multiple values for a metric log entry with the support of the utility methods. There are also several new fields in the metric log schema, automatically filled in when available and when you use the Service SDK's Logging filters. Check out the logging schema for all the changes and the logging documentation for more information on how to log metrics using the Service SDK.
Error Message Servlet
Have you ever thought of securing your Web Service against information leakage on uncaught exceptions? If you have not secured your service yet, you might find the new Servlet Support utility useful: Error Message Servlet. Simply add it to your web.xml and enjoy nicely formatted, unified error responses on unexpected errors, always following the YaaS Error Message Schema. This utility is Jackson- and Jersey-independent. Refer to the documentation for more instructions.
If you are using the Service SDK Spring Boot starter library, you are already using the feature!
An issue in the Jersey archetype caused failures when accessing the injected Jersey Context.
If you find any information that is unclear or incorrect, please let us know so that we can improve the Dev Portal content.
Use our private help channel. Receive updates over email and contact our specialists directly.
If you need more information about this topic, visit hybris Experts to post your own question and interact with our community and experts.