Skip to content

Commit

Permalink
Merge pull request wildfly#17999 from jasondlee/WFLY-19453
Browse files Browse the repository at this point in the history
[WFLY-19453] Minimize size of Otel API module
  • Loading branch information
bstansberry authored Sep 13, 2024
2 parents 5d0c387 + 9c47af2 commit b0bcb69
Show file tree
Hide file tree
Showing 10 changed files with 98 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!--
~ Copyright The WildFly Authors
~ SPDX-License-Identifier: Apache-2.0
-->
<module xmlns="urn:jboss:module:1.9" name="io.opentelemetry.api.events">
<properties>
<property name="jboss.api" value="private"/>
</properties>

<resources>
<artifact name="${io.opentelemetry:opentelemetry-api-events}"/>
</resources>

<dependencies>
<module name="io.opentelemetry.api"/>
<module name="io.opentelemetry.context"/>
</dependencies>
</module>
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@

<resources>
<artifact name="${io.opentelemetry:opentelemetry-api}"/>
<artifact name="${io.opentelemetry:opentelemetry-api-events}"/>
<artifact name="${io.opentelemetry:opentelemetry-semconv}"/>
<artifact name="${io.opentelemetry.instrumentation:opentelemetry-instrumentation-api}"/>
<artifact name="${io.opentelemetry.instrumentation:opentelemetry-instrumentation-api-semconv}"/>
<artifact name="${io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations}"/>
<artifact name="${io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations-support}"/>
</resources>

<dependencies>
<module name="io.opentelemetry.api.events"/>
<module name="io.opentelemetry.context"/>
<module name="io.opentelemetry.instrumentation.annotations"/>
<module name="io.opentelemetry.instrumentation.api"/>
<module name="io.opentelemetry.semconv"/>
<module name="io.smallrye.opentelemetry" services="import"/>

<module name="java.logging"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,16 @@

<resources>
<artifact name="${io.opentelemetry:opentelemetry-exporter-common}"/>
<artifact name="${io.opentelemetry:opentelemetry-exporter-otlp}"/>
<artifact name="${io.opentelemetry:opentelemetry-exporter-otlp-common}"/>
<artifact name="${com.fasterxml.jackson.jr:jackson-jr-objects}"/>
</resources>

<dependencies>
<module name="io.opentelemetry.api"/>
<module name="io.opentelemetry.sdk"/>
<module name="io.opentelemetry.context"/>
<module name="io.opentelemetry.otlp"/>
<module name="io.opentelemetry.otlp" services="export"/>
<module name="com.fasterxml.jackson.core.jackson-core"/>
<module name="io.smallrye.opentelemetry" services="import"/>
<module name="io.smallrye.opentelemetry" services="export"/>
<module name="org.slf4j"/>

<module name="java.logging"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!--
~ Copyright The WildFly Authors
~ SPDX-License-Identifier: Apache-2.0
-->
<module xmlns="urn:jboss:module:1.9" name="io.opentelemetry.instrumentation.annotations">
<properties>
<property name="jboss.api" value="private"/>
</properties>

<resources>
<artifact name="${io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations}"/>
<artifact name="${io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations-support}"/>
</resources>

<dependencies>
<module name="io.opentelemetry.api"/>
<module name="io.opentelemetry.instrumentation.api"/>
</dependencies>
</module>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!--
~ Copyright The WildFly Authors
~ SPDX-License-Identifier: Apache-2.0
-->
<module xmlns="urn:jboss:module:1.9" name="io.opentelemetry.instrumentation.api">
<properties>
<property name="jboss.api" value="private"/>
</properties>

<resources>
<artifact name="${io.opentelemetry.instrumentation:opentelemetry-instrumentation-api}"/>
<artifact name="${io.opentelemetry.instrumentation:opentelemetry-instrumentation-api-semconv}"/>
</resources>

<dependencies>
<module name="io.opentelemetry.api"/>
<module name="io.opentelemetry.context"/>
<module name="io.opentelemetry.semconv"/>
<module name="io.smallrye.opentelemetry" services="import"/>

<module name="java.logging"/>
<module name="jakarta.interceptor.api" />
</dependencies>
</module>
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@
<property name="jboss.api" value="private"/>
</properties>
<resources>
<artifact name="${io.opentelemetry:opentelemetry-exporter-common}"/>
<artifact name="${io.opentelemetry:opentelemetry-exporter-otlp-common}"/>
<artifact name="${io.opentelemetry:opentelemetry-exporter-otlp}"/>
<artifact name="${io.opentelemetry:opentelemetry-exporter-otlp-common}"/>
</resources>

<dependencies>
<module name="io.opentelemetry.api"/>
<module name="io.opentelemetry.context"/>
<module name="io.opentelemetry.sdk"/>
<module name="io.opentelemetry.exporter"/>
<module name="io.smallrye.opentelemetry" services="import"/>
<module name="org.slf4j"/>

<module name="java.logging"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@

<dependencies>
<module name="io.opentelemetry.api"/>
<module name="io.opentelemetry.api.events"/>
<module name="io.opentelemetry.context"/>
<module name="io.opentelemetry.exporter"/>
<module name="io.smallrye.opentelemetry" services="import"/>
<module name="io.opentelemetry.semconv"/>
<module name="io.smallrye.opentelemetry" services="export"/>

<module name="java.logging"/>
<module name="jdk.unsupported"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!--
~ Copyright The WildFly Authors
~ SPDX-License-Identifier: Apache-2.0
-->
<module xmlns="urn:jboss:module:1.9" name="io.opentelemetry.semconv">
<properties>
<property name="jboss.api" value="private"/>
</properties>

<resources>
<artifact name="${io.opentelemetry:opentelemetry-semconv}"/>
</resources>

<dependencies>
<module name="io.opentelemetry.api"/>
</dependencies>
</module>
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@

<dependencies>
<module name="io.opentelemetry.api"/>
<module name="io.opentelemetry.api.events"/>
<module name="io.opentelemetry.context"/>
<module name="io.opentelemetry.exporter"/>
<module name="io.opentelemetry.otlp"/>
<module name="io.opentelemetry.sdk"/>
<module name="io.opentelemetry.semconv"/>
<module name="io.opentelemetry.instrumentation.api"/>
<module name="io.opentelemetry.instrumentation.annotations"/>

<module name="org.jboss.resteasy.resteasy-core"/>
<module name="org.jboss.resteasy.resteasy-core-spi"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ class OpenTelemetrySubsystemRegistrar implements SubsystemResourceDefinitionRegi
public static final String API_MODULE = "org.wildfly.extension.opentelemetry-api";
public static final String[] EXPORTED_MODULES = {
"io.opentelemetry.api",
"io.opentelemetry.context",
"io.opentelemetry.api.events",
"io.opentelemetry.exporter",
"io.opentelemetry.otlp",
"io.opentelemetry.sdk",
"io.opentelemetry.semconv",
"io.smallrye.opentelemetry"
};

Expand Down

0 comments on commit b0bcb69

Please sign in to comment.