-
Notifications
You must be signed in to change notification settings - Fork 910
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
address feedback: Move tapir into separate InstrumentationModule
- Loading branch information
1 parent
18f27dc
commit 24ee821
Showing
3 changed files
with
41 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...mentation/pekkohttp/v1_0/server/route/TapirPekkoHttpServerRouteInstrumentationModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.javaagent.instrumentation.pekkohttp.v1_0.server.route; | ||
|
||
import static java.util.Arrays.asList; | ||
|
||
import com.google.auto.service.AutoService; | ||
import io.opentelemetry.javaagent.extension.instrumentation.InstrumentationModule; | ||
import io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation; | ||
import io.opentelemetry.javaagent.extension.instrumentation.internal.ExperimentalInstrumentationModule; | ||
import java.util.List; | ||
|
||
@AutoService(InstrumentationModule.class) | ||
public class TapirPekkoHttpServerRouteInstrumentationModule extends InstrumentationModule | ||
implements ExperimentalInstrumentationModule { | ||
public TapirPekkoHttpServerRouteInstrumentationModule() { | ||
super( | ||
"pekko-http", "pekko-http-1.0", "tapir-pekko-http-server", "tapir-pekko-http-server-route"); | ||
} | ||
|
||
@Override | ||
public String getModuleGroup() { | ||
return "pekko-server"; | ||
} | ||
|
||
@Override | ||
public List<TypeInstrumentation> typeInstrumentations() { | ||
return asList(new TapirPathInstrumentation(), new RouteConcatenationInstrumentation()); | ||
} | ||
} |