Skip to content

Commit

Permalink
add event management ID to MDC
Browse files Browse the repository at this point in the history
  • Loading branch information
CameronRushton committed Nov 20, 2024
1 parent a48766a commit 1d11692
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ protected static void setupMDC(String messageAsString, String receivedClassName)
MDC.clear();
MDC.put(RouteConstants.TRACE_ID, map.get("traceId"));
MDC.put(RouteConstants.ACTOR_ID, map.get("actorId"));
MDC.put(RouteConstants.EVENT_MANAGEMENT_ID, map.get("runtimeAgentId"));

if (scanClassNames.contains(receivedClassName)) {
MDC.put(RouteConstants.SCAN_ID, map.get("scanId"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class RouteConstants {

public static final String MESSAGING_SERVICE_ID = "MESSAGING_SERVICE_ID";

// EMA ID
public static final String EVENT_MANAGEMENT_ID = "EVENT_MANAGEMENT_ID";

public static final String IMPORT_ID = "IMPORT_ID";
Expand Down

0 comments on commit 1d11692

Please sign in to comment.