-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39174 from radcortez/quarkus-36836
Enable MP Telemetry TCK
- Loading branch information
Showing
8 changed files
with
46 additions
and
15 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
29 changes: 29 additions & 0 deletions
29
...pentelemetry/src/main/java/io/quarkus/tck/opentelemetry/TelemetryRelocateInterceptor.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,29 @@ | ||
package io.quarkus.tck.opentelemetry; | ||
|
||
import java.util.function.Function; | ||
|
||
import io.smallrye.config.RelocateConfigSourceInterceptor; | ||
|
||
/** | ||
* MicroProfile Telemetry must read <code>otel.*</code> | ||
* <a href= | ||
* "https://github.com/eclipse/microprofile-telemetry/blob/1.1/tracing/spec/src/main/asciidoc/microprofile-telemetry-tracing-spec.asciidoc#configuration">properties</a>. | ||
* <br> | ||
* Quarkus only reads <code>quarkus.otel.*</code> properties to be consistent with Quarkus configuration model. This | ||
* interceptor relocates the Quarkus OpenTelemetry configuration in the standard OpenTelemetry configuration. | ||
*/ | ||
public class TelemetryRelocateInterceptor extends RelocateConfigSourceInterceptor { | ||
public TelemetryRelocateInterceptor() { | ||
super(new Function<String, String>() { | ||
@Override | ||
public String apply(final String name) { | ||
if (name.startsWith("quarkus.otel.")) { | ||
return name.substring(8); | ||
} else if (name.startsWith("otel.")) { | ||
return "quarkus." + name; | ||
} | ||
return name; | ||
} | ||
}); | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
tcks/microprofile-opentelemetry/src/test/resources/exclusions.txt
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,5 @@ | ||
# Optional tests | ||
org.eclipse.microprofile.telemetry.tracing.tck.rest.JaegerPropagationTest | ||
org.eclipse.microprofile.telemetry.tracing.tck.rest.B3MultiPropagationTest | ||
org.eclipse.microprofile.telemetry.tracing.tck.rest.B3PropagationTest | ||
org.eclipse.microprofile.telemetry.tracing.tck.async.JaxRsServerAsyncTest |