Skip to content

Commit

Permalink
Add scala instrumentation (#2677)
Browse files Browse the repository at this point in the history
This helps with context propagation issues when using akka or play
instrumentation.
  • Loading branch information
trask committed Nov 10, 2022
1 parent be0854a commit bfcf1d3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,12 @@ private static void enableInstrumentations(Configuration config, Map<String, Str
if (config.preview.instrumentation.akka.enabled) {
properties.put("otel.instrumentation.akka-actor.enabled", "true");
properties.put("otel.instrumentation.akka-http.enabled", "true");
properties.put("otel.instrumentation.scala-fork-join.enabled", "true");
}
if (config.preview.instrumentation.play.enabled) {
properties.put("otel.instrumentation.play-mvc.enabled", "true");
properties.put("otel.instrumentation.play-ws.enabled", "true");
properties.put("otel.instrumentation.scala-fork-join.enabled", "true");
}
if (config.preview.instrumentation.apacheCamel.enabled) {
properties.put("otel.instrumentation.apache-camel.enabled", "true");
Expand Down

0 comments on commit bfcf1d3

Please sign in to comment.