跟踪

跟踪配置指定了Envoy使用的HTTP跟踪器的全局设置。在服务的顶层配置上定义。未来,Envoy可能会支持其他跟踪器,但现在HTTP跟踪器是唯一支持的跟踪器。

  1. {
  2. "http": {
  3. "driver": "{...}"
  4. }
  5. }
  • http
    (optional, object) 提供HTTP跟踪器的配置。

  • driver
    (optional, object) 提供处理跟踪和创建span的驱动程序。

目前支持LightStep和Zipkin驱动程序。

LightStep跟踪驱动

  1. {
  2. "type": "lightstep",
  3. "config": {
  4. "access_token_file": "...",
  5. "collector_cluster": "..."
  6. }
  7. }
  • access_token_file
    (required, string) 包含访问到LightStep API的令牌文件。

  • collector_cluster
    (required, string) 承载LightStep集群的集群管理器。

Zipkin跟踪驱动

  1. {
  2. "type": "zipkin",
  3. "config": {
  4. "collector_cluster": "...",
  5. "collector_endpoint": "..."
  6. }
  7. }
  • collector_cluster
    (required, string) 承载Zipkin集群的群集管理器。请注意,Zipkin集群必须在集群管理器定义相应的集群配置。

  • collector_endpoint
    (optional, string) 将span发送的Zipkin服务的API端口。当安装标准的Zipkin时,API端口通常是/api/v1/span,同时也是默认值。

返回