skillfed

opencensus-proto

OpenCensus Proto

opencensus-proto v0.1.0 96.3K downloads/30d#13,221 on PyPI80
Permissive license Apache-2.0 Abandoned released

What it is and what it does

OpenCensus Proto is a collection of Protocol Buffer message definitions for the OpenCensus observability framework, defining the wire format for tracing spans, metrics, and related metadata. It exists to ensure consistent serialization across different language implementations (Go, Java, C++, Python, etc.) so that observability data can be exchanged reliably in distributed systems.

However, the package is no longer maintained. OpenCensus and OpenTracing merged into OpenTelemetry in 2023, and all OpenCensus repositories except the Python implementation were archived on July 31st, 2023. The maintainers explicitly recommend migrating to OpenTelemetry, which has achieved feature parity and offers migration bridges for gradual transition. This package should be considered end-of-life for new projects.

Use it for:

  • Deserializing OpenCensus trace and metrics data received from legacy systems still using the older framework
  • Maintaining existing Python services that depend on opencensus-proto for proto message definitions
  • Interoperating with non-Python OpenCensus implementations (Go, Java) that still emit proto-formatted observability data
  • Understanding the proto schema of historical observability data stored in OpenCensus format

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides Protocol Buffer definitions for OpenCensus tracing and metrics, enabling language-independent serialization of observability data across distributed systems.

No, unless you are maintaining legacy code already using OpenCensus. The package is abandoned and superseded by OpenTelemetry, which the maintainers recommend for all new work. If you are starting a new observability project, use OpenTelemetry instead. If you must maintain existing OpenCensus integration, this package will install without friction, but plan a migration path.

Install

opencensus-proto on PyPI

pip

pip install opencensus-proto

uv

uv add opencensus-proto

poetry

poetry add opencensus-proto

Installing opencensus-proto

Before you install

Installation is straightforward with no complex dependencies beyond grpcio, but the package is abandoned as of 2023-05-02 and archived. The project was superseded by OpenTelemetry, which the maintainers recommend for new work.

License in practice

Licensed under Apache-2.0 (permissive), allowing use in most commercial and open-source projects without significant restriction.

Quickstart

pip install opencensus-proto

from opencensus.proto.trace.v1 import trace_pb2
span = trace_pb2.Span()

This package provides only proto definitions; you will need grpcio and a working protoc compiler or pre-generated Python bindings to use the messages meaningfully.

Verify before relying

  • Whether pre-generated Python bindings are included or if you must compile protos yourself
  • Compatibility with modern Python versions beyond 3.7, given the classifier list ends there
  • Whether this package is still functional or if OpenTelemetry proto packages are required for current systems

Package facts

License Apache-2.0 (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 1 — grpcio
Maintenance abandoned — 2,681 days since the last release
Last repo commit (repository archived)
First released
Downloads 96,306/month — #13,221 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: opencensus_proto-0.1.0-py2.py3-none-any.whl

Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7

Tags

protobuf definitions for tracingopencensus proto messagesdistributed tracing serializationmetrics protocol buffersobservability data interchange formatcensus proto typesgrpc tracing definitions
deprecatedobservabilityprotobuf

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

opentelemetry-exporter-otlp-proto-common

Provides Protobuf encoding utilities for…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation-grpc

Adds automatic tracing and monitoring to gRPC…

permissive · top 5,000 on PyPI

proto-google-cloud-datastore-v1

Provides Protocol Buffer definitions and gRPC…

permissive · top 15,000 on PyPI

opencensus

OpenCensus provides distributed tracing and…

permissive · top 1,000 on PyPI

opentelemetry-proto

Provides generated protobuf message classes for…

permissive · top 1,000 on PyPI

opentelemetry-exporter-zipkin-proto-http

Exports OpenTelemetry tracing data to Zipkin…

permissive · top 15,000 on PyPI

opentelemetry-exporter-jaeger-proto-grpc

Exports OpenTelemetry tracing data to Jaeger…

permissive · top 15,000 on PyPI

opensearch-protobufs

Provides pre-generated Python Protocol Buffer…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-confluent-kafka

Adds distributed tracing to confluent-kafka…

permissive · top 5,000 on PyPI