|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + |
| 6 | + <parent> |
| 7 | + <groupId>io.prometheus</groupId> |
| 8 | + <artifactId>integration_tests</artifactId> |
| 9 | + <version>0.10.1-SNAPSHOT</version> |
| 10 | + </parent> |
| 11 | + |
| 12 | + <artifactId>exemplars_otel</artifactId> |
| 13 | + <name>Integration Test - Exemplars with OpenTelemetry</name> |
| 14 | + |
| 15 | + <properties> |
| 16 | + <otel.version>1.1.0</otel.version> |
| 17 | + </properties> |
| 18 | + |
| 19 | + <dependencies> |
| 20 | + <dependency> |
| 21 | + <groupId>io.prometheus</groupId> |
| 22 | + <artifactId>simpleclient</artifactId> |
| 23 | + <version>${project.version}</version> |
| 24 | + <exclusions> |
| 25 | + <!-- uncomment the following to verify manually that simpleclient still works if the tracers are excluded --> |
| 26 | + <!-- |
| 27 | + <exclusion> |
| 28 | + <groupId>io.prometheus</groupId> |
| 29 | + <artifactId>tracer_common</artifactId> |
| 30 | + </exclusion> |
| 31 | + --> |
| 32 | + <exclusion> |
| 33 | + <groupId>io.prometheus</groupId> |
| 34 | + <artifactId>tracer_otel_agent</artifactId> |
| 35 | + </exclusion> |
| 36 | + <!-- |
| 37 | + <exclusion> |
| 38 | + <groupId>io.prometheus</groupId> |
| 39 | + <artifactId>tracer_otel</artifactId> |
| 40 | + </exclusion> |
| 41 | + --> |
| 42 | + </exclusions> |
| 43 | + </dependency> |
| 44 | + <dependency> |
| 45 | + <groupId>io.opentelemetry</groupId> |
| 46 | + <artifactId>opentelemetry-api</artifactId> |
| 47 | + <version>${otel.version}</version> |
| 48 | + </dependency> |
| 49 | + <dependency> |
| 50 | + <groupId>io.opentelemetry</groupId> |
| 51 | + <artifactId>opentelemetry-sdk</artifactId> |
| 52 | + <version>${otel.version}</version> |
| 53 | + </dependency> |
| 54 | + <dependency> |
| 55 | + <groupId>io.prometheus</groupId> |
| 56 | + <artifactId>simpleclient_httpserver</artifactId> |
| 57 | + <version>${project.version}</version> |
| 58 | + </dependency> |
| 59 | + <dependency> |
| 60 | + <groupId>com.squareup.okhttp3</groupId> |
| 61 | + <artifactId>okhttp</artifactId> |
| 62 | + <version>4.9.1</version> |
| 63 | + </dependency> |
| 64 | + <dependency> |
| 65 | + <groupId>org.testcontainers</groupId> |
| 66 | + <artifactId>testcontainers</artifactId> |
| 67 | + <scope>test</scope> |
| 68 | + </dependency> |
| 69 | + <dependency> |
| 70 | + <groupId>ch.qos.logback</groupId> |
| 71 | + <artifactId>logback-classic</artifactId> |
| 72 | + <version>1.1.2</version> |
| 73 | + </dependency> |
| 74 | + </dependencies> |
| 75 | + |
| 76 | + <build> |
| 77 | + <finalName>${artifactId}</finalName> |
| 78 | + <plugins> |
| 79 | + <plugin> |
| 80 | + <groupId>org.apache.maven.plugins</groupId> |
| 81 | + <artifactId>maven-compiler-plugin</artifactId> |
| 82 | + <configuration> |
| 83 | + <source>1.8</source> |
| 84 | + <target>1.8</target> |
| 85 | + </configuration> |
| 86 | + </plugin> |
| 87 | + <plugin> |
| 88 | + <groupId>org.apache.maven.plugins</groupId> |
| 89 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 90 | + <version>2.22.2</version> |
| 91 | + <executions> |
| 92 | + <execution> |
| 93 | + <id>integration-test</id> |
| 94 | + <phase>integration-test</phase> |
| 95 | + <goals> |
| 96 | + <goal>integration-test</goal> |
| 97 | + </goals> |
| 98 | + </execution> |
| 99 | + <execution> |
| 100 | + <id>verify</id> |
| 101 | + <phase>verify</phase> |
| 102 | + <goals> |
| 103 | + <goal>verify</goal> |
| 104 | + </goals> |
| 105 | + </execution> |
| 106 | + </executions> |
| 107 | + </plugin> |
| 108 | + <plugin> |
| 109 | + <groupId>org.apache.maven.plugins</groupId> |
| 110 | + <artifactId>maven-shade-plugin</artifactId> |
| 111 | + <version>3.2.4</version> |
| 112 | + <executions> |
| 113 | + <execution> |
| 114 | + <phase>package</phase> |
| 115 | + <goals> |
| 116 | + <goal>shade</goal> |
| 117 | + </goals> |
| 118 | + <configuration> |
| 119 | + <transformers> |
| 120 | + <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| 121 | + <mainClass>io.prometheus.it.exemplars_otel.Server</mainClass> |
| 122 | + </transformer> |
| 123 | + </transformers> |
| 124 | + </configuration> |
| 125 | + </execution> |
| 126 | + </executions> |
| 127 | + </plugin> |
| 128 | + </plugins> |
| 129 | + </build> |
| 130 | + |
| 131 | + <licenses> |
| 132 | + <license> |
| 133 | + <name>The Apache Software License, Version 2.0</name> |
| 134 | + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 135 | + <distribution>repo</distribution> |
| 136 | + </license> |
| 137 | + </licenses> |
| 138 | +</project> |
0 commit comments