Skip to content

Commit bfcf1d3

Browse files
authored
Add scala instrumentation (#2677)
This helps with context propagation issues when using akka or play instrumentation.
1 parent be0854a commit bfcf1d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/init/AiConfigCustomizer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,12 @@ private static void enableInstrumentations(Configuration config, Map<String, Str
267267
if (config.preview.instrumentation.akka.enabled) {
268268
properties.put("otel.instrumentation.akka-actor.enabled", "true");
269269
properties.put("otel.instrumentation.akka-http.enabled", "true");
270+
properties.put("otel.instrumentation.scala-fork-join.enabled", "true");
270271
}
271272
if (config.preview.instrumentation.play.enabled) {
272273
properties.put("otel.instrumentation.play-mvc.enabled", "true");
273274
properties.put("otel.instrumentation.play-ws.enabled", "true");
275+
properties.put("otel.instrumentation.scala-fork-join.enabled", "true");
274276
}
275277
if (config.preview.instrumentation.apacheCamel.enabled) {
276278
properties.put("otel.instrumentation.apache-camel.enabled", "true");

0 commit comments

Comments
 (0)