Skip to content

Commit

Permalink
oops, small tweak (#218)
Browse files Browse the repository at this point in the history
Co-authored-by: Dean Hiller <[email protected]>
  • Loading branch information
deanhiller and deantray authored Jul 7, 2023
1 parent 3ebe836 commit e3f1a17
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public void run() {
long startTime = System.currentTimeMillis();
Map<String, Object> previously = Context.getContext();
Map<String, String> previousLogMap = MDC.getCopyOfContextMap();
Context.setContext(context);
MDC.setContextMap(loggingMdcMap);
Context.setContext(this.context);
MDC.setContextMap(this.loggingMdcMap);

try {
monitoring.incrementMetric("event.count", tags);
Expand All @@ -51,7 +51,7 @@ public void run() {
} finally {
monitoring.endTimer("event.time", tags, startTime);
Context.setContext(previously);
MDC.setContextMap(loggingMdcMap);
MDC.setContextMap(previousLogMap);
}
}

Expand Down

0 comments on commit e3f1a17

Please sign in to comment.