Files
spring-boot-demo/otel-agent-vs-micrometer/app/pom.xml
T

82 lines
2.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.ankurm</groupId>
<artifactId>otel-agent-vs-micrometer</artifactId>
<version>1.0.0</version>
</parent>
<artifactId>orders-app</artifactId>
<properties>
<!-- "plain" = no tracing dependency at all (used with the agent, or as the baseline).
-Pmicrometer switches the variant name and adds the Boot 4 OpenTelemetry starter. -->
<variant>plain</variant>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webmvc</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-restclient</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
<profiles>
<profile>
<id>micrometer</id>
<properties>
<variant>micrometer</variant>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-opentelemetry</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<!-- use together with -Pmicrometer: adds the third-party JDBC observation library -->
<id>jdbc</id>
<properties>
<variant>micrometer-jdbc</variant>
</properties>
<dependencies>
<dependency>
<groupId>net.ttddyy.observation</groupId>
<artifactId>datasource-micrometer-spring-boot</artifactId>
<version>2.3.1</version>
</dependency>
</dependencies>
</profile>
</profiles>
<build>
<finalName>orders-${variant}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>