-
Notifications
You must be signed in to change notification settings - Fork 2
ScheduledTask should set a basic "traceId" by default #37
Copy link
Copy link
Closed
Description
ScheduledTask in its current for does not set any MDC values and thus there is very little traceability wrt logs surrounding a scheduled task run.
It would make sense to set some basic MDC properties in order for log lines to be easily correlatable and in addition being able to correlate the log lines generated by the library with the log lines genereated within the task (user space)
As an example from our log set up, these log lines generated from the library and any log lines generated within the task while executed won't have an associated traceId.

Suggest setting the following MDC values before emitting any log lines internally in the lib and before running the user defined task.
- traceId
- scheduledTaskRunId
- scheduledTaskName
- scheduledTaskNameClean
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels