第 37 章 AWS XRay Component
可作为 Camel 2.21 可用
camel-aws-xray 组件用于使用 AWS XRay 跟踪和计时传入的 Camel 消息。
事件(subsegments)会捕获用于传入和传出消息。
37.1. 依赖项
要将 AWS XRay 支持纳入 Camel 中,需要向项目添加包含 Camel 相关的 AWS XRay 相关类的存档。另外,还需要提供 AWS XRay 库。
要包括 AWS XRay 和 Camel,依赖项使用以下 Maven 导入:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk-bom</artifactId>
<version>1.3.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-aws-xray</artifactId>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk-core</artifactId>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-xray-recorder-sdk-aws-sdk</artifactId>
</dependency>
<dependencies>