第 38 章 AWS XRay 组件
从 Camel 2.21 开始提供
camel-aws-xray 组件用于追踪和使用 AWS XRay 的传入和传出 Camel 消息进行跟踪和计时。
为发送到/来自 Camel 的传入和传出消息捕获事件(子网段)。
38.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>