Closed anna-geller closed 2 months ago
as discussed @loicmathieu, ignore extra fields like the log field for Realtime Trigger if not needed
@loicmathieu for the UI: https://www.figma.com/design/ew0uXk0NRXJ2NBBJTNe2n1/01_UI?node-id=1446-8466&t=0n2sGBtfHm0IDPFq-4
@MilosPaunovic, what needs to be done is to add an expand button (already available on element-plus) to the triggers page that will display the logs of the trigger as seen in the above screenshot.
There are 3 places where we list triggers:
This is mostly a UI issue, with only small enhancements needed on the backend side (to expose + filter the logs).
Triggers can sometimes be difficult to troubleshoot. Imagine a scenario: you configured a new trigger but it doesn't generate any executions. What happened? There are many potential culprits and questions you may ask yourself:
It's difficult to answer these questions without additional observability to the trigger's behavior. That's where Trigger Logs come in handy.
Proposal
For each trigger, we should add an expand section in the UI that displays the trigger logs.
Implementation
We already log a lot for each triggerId, but we'll need to:
log
field to the trigger schema:boolean
that enables or disables logging for the trigger.disabled
for Realtime Triggers to avoid privacy concerns (as Realtime Triggers process/store data directly rather than through internal storage).enabled
by default.logLevel
field to the trigger schema:TRACE
for allTriggers.Next steps
log
andlogLevel
fields to the trigger schemalog
andlogLevel
fields to the low-code editor for triggersINFO
level when the trigger starts polling + every hour a heartbeat-style log showing the trigger is still active; given Realtime Triggers process data directly, we should set a higher log level by default e.g.INFO
rather thanTRACE