API Gateway Community v2.0

Older version: v2.0

Released on March 7, 2022

Document updated on

Exporting traces to Zipkin

Zipkin is a distributed tracing system. It helps gather timing data needed to troubleshoot latency problems in service architectures.

The Opencensus exporter allows you export data to Zipkin. Enabling it only requires you to add the zipkin exporter in the opencensus module.

The following configuration snippet sends data to your Zipkin:

{
  "extra_config": {
    "telemetry/opencensus": {
      "exporters": {
        "zipkin": {
          "collector_url": "http://192.168.99.100:9411/api/v2/spans",
          "service_name": "krakend"
        }
      }
    }
  }
}

  • collector_url is the URL (including port and path) where your Zipkin is accepting the spans
  • service_name the service name registered in Zipkin

See also the additional settings of the Opencensus module that can be declared.