|
21 | 21 | <automatic.module.name>io.prometheus.metrics.exporter.opentelemetry</automatic.module.name>
|
22 | 22 | </properties>
|
23 | 23 |
|
| 24 | + <dependencyManagement> |
| 25 | + <dependencies> |
| 26 | + <dependency> |
| 27 | + <groupId>io.opentelemetry.instrumentation</groupId> |
| 28 | + <artifactId>opentelemetry-instrumentation-bom-alpha</artifactId> |
| 29 | + <version>${otel.instrumentation.version}</version> |
| 30 | + <type>pom</type> |
| 31 | + <scope>import</scope> |
| 32 | + </dependency> |
| 33 | + </dependencies> |
| 34 | + </dependencyManagement> |
| 35 | + |
24 | 36 | <dependencies>
|
25 | 37 | <dependency>
|
26 | 38 | <groupId>io.prometheus</groupId>
|
27 |
| - <artifactId>prometheus-metrics-exporter-opentelemetry-no-otel</artifactId> |
| 39 | + <artifactId>prometheus-metrics-core</artifactId> |
28 | 40 | <version>${project.version}</version>
|
29 | 41 | </dependency>
|
| 42 | + <dependency> |
| 43 | + <groupId>io.prometheus</groupId> |
| 44 | + <artifactId>prometheus-metrics-exporter-opentelemetry-otel-agent-resources</artifactId> |
| 45 | + <version>${project.version}</version> |
| 46 | + </dependency> |
| 47 | + <dependency> |
| 48 | + <groupId>io.opentelemetry</groupId> |
| 49 | + <artifactId>opentelemetry-api</artifactId> |
| 50 | + </dependency> |
| 51 | + <dependency> |
| 52 | + <groupId>io.opentelemetry</groupId> |
| 53 | + <artifactId>opentelemetry-sdk</artifactId> |
| 54 | + </dependency> |
| 55 | + <dependency> |
| 56 | + <groupId>io.opentelemetry</groupId> |
| 57 | + <artifactId>opentelemetry-exporter-otlp</artifactId> |
| 58 | + </dependency> |
| 59 | + <dependency> |
| 60 | + <groupId>io.opentelemetry</groupId> |
| 61 | + <artifactId>opentelemetry-sdk-extension-autoconfigure</artifactId> |
| 62 | + </dependency> |
| 63 | + <dependency> |
| 64 | + <groupId>io.opentelemetry</groupId> |
| 65 | + <artifactId>opentelemetry-sdk-extension-incubator</artifactId> |
| 66 | + </dependency> |
| 67 | + <dependency> |
| 68 | + <groupId>io.opentelemetry.instrumentation</groupId> |
| 69 | + <artifactId>opentelemetry-resources</artifactId> |
| 70 | + </dependency> |
| 71 | + |
| 72 | + <!-- test dependencies --> |
| 73 | + <dependency> |
| 74 | + <groupId>org.wiremock</groupId> |
| 75 | + <artifactId>wiremock</artifactId> |
| 76 | + <version>3.13.1</version> |
| 77 | + <scope>test</scope> |
| 78 | + <exclusions> |
| 79 | + <exclusion> |
| 80 | + <groupId>org.hamcrest</groupId> |
| 81 | + <artifactId>hamcrest-core</artifactId> |
| 82 | + </exclusion> |
| 83 | + </exclusions> |
| 84 | + </dependency> |
| 85 | + <dependency> |
| 86 | + <groupId>org.awaitility</groupId> |
| 87 | + <artifactId>awaitility</artifactId> |
| 88 | + <version>4.3.0</version> |
| 89 | + <scope>test</scope> |
| 90 | + </dependency> |
| 91 | + <dependency> |
| 92 | + <groupId>io.opentelemetry</groupId> |
| 93 | + <artifactId>opentelemetry-proto</artifactId> |
| 94 | + <version>1.7.1-alpha</version> |
| 95 | + <scope>test</scope> |
| 96 | + </dependency> |
| 97 | + <dependency> |
| 98 | + <groupId>io.opentelemetry</groupId> |
| 99 | + <artifactId>opentelemetry-sdk-testing</artifactId> |
| 100 | + <scope>test</scope> |
| 101 | + </dependency> |
30 | 102 | </dependencies>
|
31 | 103 |
|
32 | 104 | <build>
|
| 105 | + <resources> |
| 106 | + <resource> |
| 107 | + <directory>target/metrics-exporter-opentelemetry/src/main/resources-filtered</directory> |
| 108 | + <filtering>true</filtering> |
| 109 | + </resource> |
| 110 | + </resources> |
| 111 | + |
33 | 112 | <plugins>
|
| 113 | + <plugin> |
| 114 | + <groupId>org.apache.maven.plugins</groupId> |
| 115 | + <artifactId>maven-resources-plugin</artifactId> |
| 116 | + <executions> |
| 117 | + <execution> |
| 118 | + <id>copy-metrics-exporter-opentelemetry-main</id> |
| 119 | + <phase>validate</phase> |
| 120 | + <goals> |
| 121 | + <goal>copy-resources</goal> |
| 122 | + </goals> |
| 123 | + <configuration> |
| 124 | + <outputDirectory>target/metrics-exporter-opentelemetry/src/main</outputDirectory> |
| 125 | + <resources> |
| 126 | + <resource> |
| 127 | + <directory>../prometheus-metrics-exporter-opentelemetry/src/main</directory> |
| 128 | + </resource> |
| 129 | + <resources> |
| 130 | + </resources> |
| 131 | + </resources> |
| 132 | + </configuration> |
| 133 | + </execution> |
| 134 | + <execution> |
| 135 | + <id>copy-metrics-exporter-opentelemetry-test</id> |
| 136 | + <phase>validate</phase> |
| 137 | + <goals> |
| 138 | + <goal>copy-resources</goal> |
| 139 | + </goals> |
| 140 | + <configuration> |
| 141 | + <outputDirectory>target/metrics-exporter-opentelemetry/src/test</outputDirectory> |
| 142 | + <resources> |
| 143 | + <resource> |
| 144 | + <directory>../prometheus-metrics-exporter-opentelemetry/src/test</directory> |
| 145 | + </resource> |
| 146 | + </resources> |
| 147 | + </configuration> |
| 148 | + </execution> |
| 149 | + </executions> |
| 150 | + </plugin> |
34 | 151 | <plugin>
|
35 | 152 | <groupId>org.codehaus.mojo</groupId>
|
36 | 153 | <artifactId>build-helper-maven-plugin</artifactId>
|
|
48 | 165 | <failIfNoMatch>true</failIfNoMatch>
|
49 | 166 | </configuration>
|
50 | 167 | </execution>
|
| 168 | + <execution> |
| 169 | + <id>metrics-exporter-opentelemetry-main</id> |
| 170 | + <phase>generate-sources</phase> |
| 171 | + <goals> |
| 172 | + <goal>add-source</goal> |
| 173 | + </goals> |
| 174 | + <configuration> |
| 175 | + <sources> |
| 176 | + <source>target/metrics-exporter-opentelemetry/src/main/java</source> |
| 177 | + </sources> |
| 178 | + </configuration> |
| 179 | + </execution> |
| 180 | + <execution> |
| 181 | + <id>add-metrics-exporter-opentelemetry-test</id> |
| 182 | + <phase>generate-sources</phase> |
| 183 | + <goals> |
| 184 | + <goal>add-test-source</goal> |
| 185 | + </goals> |
| 186 | + <configuration> |
| 187 | + <sources> |
| 188 | + <source>target/metrics-exporter-opentelemetry/src/test/java</source> |
| 189 | + </sources> |
| 190 | + </configuration> |
| 191 | + </execution> |
51 | 192 | </executions>
|
52 | 193 | </plugin>
|
53 | 194 | <plugin>
|
|
0 commit comments