OpenCensus is being archived! Read the blog post to learn more

Zipkin

Introduction

The OpenCensus Zipkin receiver allows OpenCensus Service to capture traces that were initially destined for Zipkin

Accepted formats

The OpenCensus Service receives a variety of Zipkin data serialized in the following formats:

Zipkin API version Data format
v1 JSON
v1 Apache Thrift
v2 JSON
v2 Protocol Buffers
v2 Scribe

Configuration

A Zipkin receiver can be turned on by using the configuration file sub-section “zipkin” under “receivers”

Format

receivers:
  zipkin:
    address: <host:port>

  zipkin-scribe:
    port: <port>
    category: <category>

Example

receivers:
  zipkin:
    address: "localhost:9411"

  zipkin-scribe:
    port: 9410
    category: "agent"

and when OpenCensus Service is re-run, it should produce such output

Agent
2019/02/12 18:02:58 Running zPages at ":55679"
2019/02/12 18:02:58 Running Zipkin receiver with address "localhost:9411"
Collector
{"level":"info","ts":1551744415.5136526,"caller":"opencensus/receiver.go:62","msg":"OpenCensus receiver is running.","port":55678}
{"level":"info","ts":1551744414.5134265,"caller":"zipkin/receiver.go:51","msg":"Zipkin receiver is running.","port":9411}

Notes

“zipkin” and “zipkin-scribe” are two different receivers.

References

Resource URL
Zipkin project https://zipkin.io/