Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKunz committed Jul 3, 2020
1 parent 046c09f commit ae88c8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import javax.annotation.PostConstruct;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Function;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -123,6 +122,6 @@ synchronized void updateEnabledAdaptersSet() {
inspectitEnv.getCurrentConfig().getTracing().getLogCorrelation().getTraceIdMdcInjection();
enabledAdapters = availableAdapters.values().stream()
.filter(adapter -> adapter.isEnabledForConfig(settings))
.collect(Collectors.toCollection(() -> Collections.newSetFromMap(new ConcurrentHashMap<>())));
.collect(Collectors.toCollection(() -> Collections.newSetFromMap(new WeakHashMap<>())));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ As a result, log messages, generated within an exported trace, will be prefixed

You can change the key under which the trace-id is placed in the MDC using the property `inspectit.tracing.log-correlation.trace-id-mdc-injection.key`.

By default, the trace-id will inserted into all MDCs. If required, you can selectively exclude the supported libraries using the following flags:
By default, the trace-id will be inserted into all MDCs. If required, you can selectively exclude the supported libraries using the following flags:
```yaml
inspectit:
tracing:
Expand Down

0 comments on commit ae88c8c

Please sign in to comment.