API Gateway Community v1.4

Older version: v1.4

Released on June 10, 2021

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:

"github_com/devopsfaith/krakend-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.