camunda / camunda-bpm-platform

Flexible framework for workflow and decision automation with BPMN and DMN. Integration with Quarkus, Spring, Spring Boot, CDI.
https://camunda.com/
Apache License 2.0
4.11k stars 1.55k forks source link

Preserve externally set MDC logging properties #2379

Closed ThorbenLindhauer closed 8 months ago

ThorbenLindhauer commented 4 years ago

This issue was imported from JIRA:

Field Value
JIRA Link CAM-11337
Reporter zZ6Eda
What is this name? This pseudonym name was generated based on the user name in JIRA to protect the personal data of our JIRA users. You can use this identifier to search for issues by the same reporter.
Has restricted visibility comments false

Current behavior:

Problem

Suggested improvement

Links:

### camunda-bpm-platform PR
- [ ] https://github.com/camunda/camunda-bpm-platform/pull/4054
### camunda-docs-manual PR
- [ ] https://github.com/camunda/camunda-docs-manual/pull/1586
psavidis commented 9 months ago

Kickoff

Context

There is a subset of our users who are utilising the MDC to store data to log management systems (e.g graylog).

Business Value

Customer Requirements

As a user

*all MDC Properties = Logging Context parameter properties + custom third party properties used by the user

Business Cases

👉 Assumption: The access of MDC to store the external properties ( by the user) and the process-engine are both living in the same JVM process

Backwards compatibility

The above points render the feature non-backwards compatible. We will collect data about our customers usage of the feature and if required, we will deliver in a patch release the possibility to make it configurable.

Documentation

The Logging Context Parameters section needs to include a note which states that any external properties (third party or the same as logging context parameters) will be preserved after any command executions.

Backporting

This is a new feature request, it does not require any backports to previous versions. It will be available only in 7.21.

Technical Solution Proposal

How Current Design Works

What needs to be added

Breakdown

[camunda-bpm-platform] - Add Feature

Migration guide 7.20 to 7.21

psavidis commented 9 months ago

Update: Waiting for the Customer to reply to the open point question of the feature design before any further code changes or review takes place.

psavidis commented 8 months ago

Update: The ticket progress can continue normally independently of the customers reply. In case the job scheduler is used, a separate ticket will be created to assess their request and include it as part of the feature.