Clone this repo:
  1. 1664cc9 Update README with OpenCensus sunset notice (#236) by Aaron Abbott · 1 year, 1 month ago master
  2. 3619b5d Remove unnecessary script (#229) by Bogdan Drutu · 1 year, 8 months ago
  3. 47d0550 Run go mod tidy, forgot to do after proto updates (#228) by Bogdan Drutu · 1 year, 8 months ago
  4. 7bf1abd Start 0.5.0 development cycle (#226) by David Ashpole · 1 year, 8 months ago
  5. a5f3b19 Add makefile, upgrade to use opentelemetry protoc docker, newer protoc (#225) by Bogdan Drutu · 1 year, 8 months ago


OpenCensus and OpenTracing have merged to form OpenTelemetry, which serves as the next major version of OpenCensus and OpenTracing.

OpenTelemetry has now reached feature parity with OpenCensus, with tracing and metrics SDKs available in .NET, Golang, Java, NodeJS, and Python. All OpenCensus Github repositories, except census-instrumentation/opencensus-python, will be archived on July 31st, 2023. We encourage users to migrate to OpenTelemetry by this date.

To help you gradually migrate your instrumentation to OpenTelemetry, bridges are available in Java, Go, Python, and JS. Read the full blog post to learn more.

OpenCensus Proto - Language Independent Interface Types For OpenCensus

Gitter chat Build Status Maven Central Javadocs GoDoc PyPI

Census provides a framework to define and collect stats against metrics and to break those stats down across user-defined dimensions.

The Census framework is natively available in many languages (e.g. C++, Go, and Java). The API interface types are defined using protos to ensure consistency and interoperability for the different implementations.


Install to Go

$ go get -u

In most cases you should depend on the gen-go files directly. If you are building with Bazel, there are also go_proto_library build rules available. See PR/132 for details. However, please note that Bazel doesn't generate the final artifacts.

Add the dependencies to your Java project

For Maven add to pom.xml:


For Gradle add to dependencies:

compile 'io.opencensus:opencensus-proto:0.2.0'

Add the dependencies to Bazel project


    name = "io_opencensus_proto",
    strip_prefix = "src",
    remote = "",


    name = "io_opencensus_proto",
    strip_prefix = "opencensus-proto-master/src",
    urls = [""],

In BUILD.bazel:

    name = "foo_proto",
    srcs = ["foo.proto"],
    deps = [
      # etc.