You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dependency-Track performs many tasks asynchronously. Status updates, warnings, and errors are logged during task execution, however those logs lack context:
When BOM processing fails, it's unclear for which BOM, uploaded to what project
When VEX processing fails, it's unclear for which VEX, uploaded to what project
When repository metadata analysis fails, it's unclear for which component, and for what repository
etc.
Proposed Behavior
Logback offers a feature to add additional context to log statements via Mapped Diagnostic Context (MDC).
We should use that to attach context information, for example:
Project UUID, name, version
Component UUID, name, version
BOM / VEX format, spec version, serial number, version
etc.
wherever appropriate. When logging to JSON format, those context variables are represented as dedicated JSON fields and can thus be indexed by log aggregators (Elasticsearch, Splunk, ...).
Adds regression test for DependencyTrack#3895. The behavior itself does not reproduce on `master`, but does with `4.11.5`.
Wraps the project cloning in a transaction to make it more reliable. Adds MDC variables for `CloneProjectTask` (DependencyTrack#3234).
FixesDependencyTrack#3895
Signed-off-by: nscuro <[email protected]>
Adds regression test for DependencyTrack#3895. The behavior itself does not reproduce on `master`, but does with `4.11.5`.
Wraps the project cloning in a transaction to make it more reliable. Adds MDC variables for `CloneProjectTask` (DependencyTrack#3234).
FixesDependencyTrack#3895
Signed-off-by: nscuro <[email protected]>
Current Behavior
Dependency-Track performs many tasks asynchronously. Status updates, warnings, and errors are logged during task execution, however those logs lack context:
Proposed Behavior
Logback offers a feature to add additional context to log statements via Mapped Diagnostic Context (MDC).
We should use that to attach context information, for example:
wherever appropriate. When logging to JSON format, those context variables are represented as dedicated JSON fields and can thus be indexed by log aggregators (Elasticsearch, Splunk, ...).
Checklist
The text was updated successfully, but these errors were encountered: