383.9. Spring Boot Auto-Configuration

组件支持 10 个选项,如下所示。

名称描述默认类型

camel.zipkin.client-service-mappings

将与 Camel 事件匹配的客户端服务映射设置为给定的 zipkin 服务名称。键是模式,value 是服务名称。

 

map

camel.zipkin.endpoint

为 zipkin 的 <a href="http://zipkin.io/zipkin-api/#/">v2 api</a>设置 POST URL,通常为 "http://zipkinhost:9411/api/v2/spans"

 

字符串

camel.zipkin.exclude-patterns

设置 exclude pattern (s),使用 zipkin 为模式匹配的 Camel 消息禁用追踪。

 

Set

camel.zipkin.host-name

如果发送范围到远程 zipkin scribe (thrift RPC)收集器,则设置主机名。

 

字符串

camel.zipkin.include-message-body

是否在 zipkin trace 中包含 Camel 消息正文。不建议在生产环境中使用,或者当有大有效负载时。您可以配置 camel.springboot.log-debug-max-chars 选项来限制大小。

false

布尔值

camel.zipkin.include-message-body-streams

是否包括了基于 zipkin trace 的消息正文。不建议在生产环境中使用,或者当有大有效负载时。您可以配置 camel.springboot.log-debug-max-chars 选项来限制大小。

false

布尔值

camel.zipkin.port

如果向远程 zipkin scribe (第rift RPC)收集器发送 span,则设置端口。

0

整数

camel.zipkin.rate

配置一个速率,决定通过 zipkin 跟踪多少事件。速率表示为百分比(1.0f = 100%,0.5f 为 50%,0.1f 为 10%。

1

浮点值

camel.zipkin.server-service-mappings

将与 Camel 事件匹配的服务器服务映射设置为给定的 zipkin 服务名称。键是模式,value 是服务名称。

 

map

camel.zipkin.service-name

使用与所有 Camel 事件匹配的全局服务名称

 

字符串