65 lines
2.7 KiB
XML
65 lines
2.7 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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||
<modelVersion>4.0.0</modelVersion>
|
||
<parent>
|
||
<groupId>reliable.simple.starter</groupId>
|
||
<artifactId>simple-starter</artifactId>
|
||
<version>${revision}</version>
|
||
</parent>
|
||
|
||
<artifactId>simple-starter-trace</artifactId>
|
||
<packaging>jar</packaging>
|
||
|
||
<name>${project.artifactId}</name>
|
||
<description>链路追踪模块(基于 Micrometer Tracing + OpenTelemetry,替代 TLog)</description>
|
||
|
||
<dependencies>
|
||
<!-- 核心模块 -->
|
||
<dependency>
|
||
<groupId>reliable.simple.starter</groupId>
|
||
<artifactId>simple-starter-core</artifactId>
|
||
</dependency>
|
||
|
||
<!-- Web 模块(optional,仅 TraceHttpServerFilter 需要;gRPC 应用引入时不会被拉入) -->
|
||
<dependency>
|
||
<groupId>reliable.simple.starter</groupId>
|
||
<artifactId>simple-starter-web</artifactId>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
|
||
<!-- Spring Boot Actuator(Micrometer Tracing 自动配置载体,SB4.1 内置链路追踪自动埋点) -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
|
||
<!-- Micrometer Tracing OTel 桥接(将 Micrometer Span 桥接到 OpenTelemetry,版本由 spring-boot-dependencies BOM 管理) -->
|
||
<dependency>
|
||
<groupId>io.micrometer</groupId>
|
||
<artifactId>micrometer-tracing-bridge-otel</artifactId>
|
||
</dependency>
|
||
|
||
<!-- OpenTelemetry SDK AutoConfig(AutoConfiguredOpenTelemetrySdk,从系统属性读取配置构建 OTel SDK) -->
|
||
<dependency>
|
||
<groupId>io.opentelemetry</groupId>
|
||
<artifactId>opentelemetry-sdk-extension-autoconfigure</artifactId>
|
||
</dependency>
|
||
|
||
<!-- OpenTelemetry OTLP 导出器(将 trace 数据导出到 OTLP collector,版本由 spring-boot-dependencies BOM 管理) -->
|
||
<dependency>
|
||
<groupId>io.opentelemetry</groupId>
|
||
<artifactId>opentelemetry-exporter-otlp</artifactId>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
|
||
<!-- 单元测试 -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-test</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
</dependencies>
|
||
</project>
|