We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 095dd7c commit 1e77213Copy full SHA for 1e77213
instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/internal/InstrumenterContext.java
@@ -21,7 +21,12 @@
21
*/
22
public final class InstrumenterContext {
23
private static final ThreadLocal<InstrumenterContext> instrumenterContext =
24
- ThreadLocal.withInitial(InstrumenterContext::new);
+ new ThreadLocal<InstrumenterContext>() {
25
+ @Override
26
+ protected InstrumenterContext initialValue() {
27
+ return new InstrumenterContext();
28
+ }
29
+ };
30
31
private final Map<String, Object> map = new HashMap<>();
32
0 commit comments