Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions common/src/main/java/org/iris_events/common/MDCEnricher.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import static org.iris_events.common.MessagingHeaders.Message.CLIENT_TRACE_ID;
import static org.iris_events.common.MessagingHeaders.Message.CLIENT_VERSION;
import static org.iris_events.common.MessagingHeaders.Message.CORRELATION_ID;
import static org.iris_events.common.MessagingHeaders.Message.EVENT_TYPE;
import static org.iris_events.common.MessagingHeaders.Message.SESSION_ID;
import static org.iris_events.common.MessagingHeaders.Message.USER_ID;
Expand All @@ -20,7 +19,7 @@ public static void enrichMDC(final AMQP.BasicProperties properties) {
getStringHeader(properties, SESSION_ID).ifPresent(s -> MDC.put(MDCProperties.SESSION_ID, s));
getStringHeader(properties, USER_ID).ifPresent(s -> MDC.put(MDCProperties.USER_ID, s));
getStringHeader(properties, CLIENT_TRACE_ID).ifPresent(s -> MDC.put(MDCProperties.CLIENT_TRACE_ID, s));
getStringHeader(properties, CORRELATION_ID).ifPresent(s -> MDC.put(MDCProperties.CORRELATION_ID, s));
Optional.ofNullable(properties.getCorrelationId()).ifPresent(s -> MDC.put(MDCProperties.CORRELATION_ID, s));
getStringHeader(properties, EVENT_TYPE).ifPresent(s -> MDC.put(MDCProperties.EVENT_TYPE, s));
getStringHeader(properties, CLIENT_VERSION).ifPresent(s -> MDC.put(MDCProperties.CLIENT_VERSION, s));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public static class Message {
public static final String REQUEST_URI = "x-request-uri";
public static final String SERVER_TIMESTAMP = "x-server-timestamp";
public static final String SUBSCRIPTION_ID = "x-subscription-id";
public static final String CORRELATION_ID = "x-correlation-id";
public static final String CACHE_TTL = "x-cache-ttl";
public static final String CLIENT_VERSION = "x-client-version";
}
Expand Down