Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Welcome to OPENCENSUS's documentation!
:maxdepth: 2
:hidden:

trace/usage
trace/index

Getting started
---------------
Expand Down
24 changes: 24 additions & 0 deletions docs/trace/api/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
API Documentation
=================

.. toctree::

span
span_context
request_tracer
execution_context
trace_options
always_on_sampler
always_off_sampler
probability_sampler
print_exporter
logging_exporter
stackdriver_exporter
zipkin_exporter
file_exporter
binary_format_propagation
google_cloud_format_propagation
text_format_propagation
trace_context_http_header_format_propagation
noop_tracer
context_tracer
File renamed without changes.
6 changes: 6 additions & 0 deletions docs/trace/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. toctree::
:maxdepth: 2
:hidden:

usage
api/index
38 changes: 14 additions & 24 deletions docs/trace/usage.rst
Original file line number Diff line number Diff line change
@@ -1,29 +1,20 @@
OpenCensus Trace for Python
===========================

.. toctree::
:maxdepth: 2
:hidden:

span
span_context
request_tracer
execution_context
trace_options
always_on_sampler
always_off_sampler
probability_sampler
print_exporter
logging_exporter
stackdriver_exporter
zipkin_exporter
file_exporter
binary_format_propagation
google_cloud_format_propagation
text_format_propagation
trace_context_http_header_format_propagation
noop_tracer
context_tracer
`Census`_ for Python. Census provides a framework to measure a server's resource
usage and collect performance stats. This repository contains Python related
utilities and supporting software needed by Census.

.. _Census: https://github.com/census-instrumentation

|circleci|

.. |circleci| image:: https://circleci.com/gh/census-instrumentation/opencensus-python.svg?style=shield
:target: https://circleci.com/gh/census-instrumentation/opencensus-python

- `API Documentation`_

.. _API Documentation: http://opencensus.io/opencensus-python/trace/usage.html

Installation & basic usage
--------------------------
Expand Down Expand Up @@ -78,7 +69,6 @@ Alternatively, you can explicitly start and end a span:

# Initialize a tracer, by default using the `PrintExporter`
tracer = request_tracer.RequestTracer()
tracer.start_trace()

tracer.start_span(name='span1')
do_something_to_trace()
Expand Down
3 changes: 3 additions & 0 deletions scripts/update_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ set -ev
# Build docs
function build_docs {
rm -rf docs/build/
cp README.rst docs/trace/usage.rst
sed -i '1s/.*/OpenCensus Trace for Python/' docs/trace/usage.rst
sed -i '2s/.*/===========================/' docs/trace/usage.rst
make html
return $?
}
Expand Down