Skip to content

Commit 08ee8f9

Browse files
committed
bring back useful comment
1 parent d7189be commit 08ee8f9

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

instrumentation/akka/akka-http-10.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/akkahttp/server/AkkaHttpServerInstrumentationModule.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public String getModuleGroup() {
2929

3030
@Override
3131
public ElementMatcher.Junction<ClassLoader> classLoaderMatcher() {
32+
// in GraphInterpreterInstrumentation we instrument a class that belongs to akka-streams, make
33+
// sure this runs only when akka-http is present to avoid muzzle failures
3234
// added in 10.0.0
3335
return hasClassesNamed("akka.http.scaladsl.HttpExt");
3436
}

instrumentation/pekko/pekko-http-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/pekkohttp/v1_0/server/PekkoHttpServerInstrumentationModule.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ public PekkoHttpServerInstrumentationModule() {
2424

2525
@Override
2626
public ElementMatcher.Junction<ClassLoader> classLoaderMatcher() {
27+
// in GraphInterpreterInstrumentation we instrument a class that belongs to pekko-streams, make
28+
// sure this runs only when pekko-http is present to avoid muzzle failures
2729
// added in 1.0.0
2830
return hasClassesNamed("org.apache.pekko.http.scaladsl.HttpExt");
2931
}

0 commit comments

Comments
 (0)