Skip to content
13 changes: 11 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
import os
import sys

sys.path.insert(0, os.path.abspath("../opentelemetry-api/src/"))
sys.path[:0] = [
os.path.abspath("../opentelemetry-api/src/"),
os.path.abspath("../ext/opentelemetry-ext-opentracing-shim/src/"),
]


# -- Project information -----------------------------------------------------
Expand Down Expand Up @@ -47,7 +50,13 @@
"sphinx.ext.githubpages",
]

intersphinx_mapping = {"python": ("https://docs.python.org/3/", None)}
intersphinx_mapping = {
"python": ("https://docs.python.org/3/", None),
"opentracing": (
"https://opentracing-python.readthedocs.io/en/latest/",
None,
),
}

# http://www.sphinx-doc.org/en/master/config.html#confval-nitpicky
# Sphinx will warn about all references where the target cannot be found.
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ abstract types for OpenTelemetry implementations.
opentelemetry.metrics
opentelemetry.trace
opentelemetry.util.loader
opentelemetry.ext.opentracing_shim


Indices and tables
Expand Down
8 changes: 8 additions & 0 deletions docs/opentelemetry.ext.opentracing_shim.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
opentelemetry.ext.opentracing_shim package
==========================================

Module contents
---------------

.. automodule:: opentelemetry.ext.opentracing_shim
:no-show-inheritance:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why that option?

Copy link
Copy Markdown
Contributor Author

@johananl johananl Nov 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See rationale in the commit message of d937117. TL;DR: without this option the links to OpenTracing break because of the current structure of the opentracing package.

If you have an idea how to address this properly, I'd love to hear :-)

Loading