February Developer Challenge – CAP Plugins: Week 4

If you missed week 1, you could find all the details: here
If you missed week 2, you could find all the details: here
If you missed week 3, you could find all the details: here

For the final week we are going to go all in. We have several remaining plugins and your challenge this week is to integrate all of them into your application.

Audit Logging

The new Audit Log plugin provides out-of-the box support for logging personal data-related operations with the SAP Audit Log Service. All we need is annotations of respective entities and fields.

https://github.com/cap-js/audit-logging

Add the Audit Logging plugin to your application and add Personal Data Annotations to the Books entity. Share your screenshot of the audit entries after accessing the entity. 

auditLog.png

Bonus: Add a custom audit log entry when the submitOrder action is triggered 
auditLog2.png

Notifications

The Notifications plugin provides integration with the SAP Alert Notifications service to send notifications via email, Slack, Microsoft Teams, or SAP Fiori notifications. The client is implemented as a CAP service, which gives us a very simple programmatic API

https://github.com/cap-js/notifications

Add the Notifications plugin to your application. Throw a notification every time ListOfBooks entity is read and a discount has been applied. Post a screenshot of your notification in the log. 
notificationService.png

Telemetry

The Telemetry plugin provides observability features such as tracing and metrics, including automatic OpenTelemetry instrumentation. Simply add the plugin to your project and you will find telemetry output written to the console

https://github.com/cap-js/telemetry

Add the Telemetry plugin to your application. Post a screenshot of the telemetry output in our log.

telemetry.png

Scroll to Top