Skip to content

Commit ef9847f

Browse files
authored
Propagate API module & propagators package missing from API docs (#2785)
* Propagate API module missing from docs. * Add CHANGELOG. * Sphinx complains about more missing classes. * More fixes, understood why Sphinx didn't find some link targets. * Update CHANGELOG.
1 parent 25771ec commit ef9847f

File tree

7 files changed

+39
-17
lines changed

7 files changed

+39
-17
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4141
([#2748](https://github.com/open-telemetry/opentelemetry-python/pull/2748))
4242
- Fix Jaeger propagator usage with NonRecordingSpan
4343
([#2762](https://github.com/open-telemetry/opentelemetry-python/pull/2762))
44+
- Add `opentelemetry.propagate` module and `opentelemetry.propagators` package
45+
to the API reference documentation
46+
([#2785](https://github.com/open-telemetry/opentelemetry-python/pull/2785))
4447

4548

4649
## [1.12.0rc1-0.31b0](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.12.0rc1-0.31b0) - 2022-05-17

docs/api/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ OpenTelemetry Python API
88

99
baggage
1010
context
11+
propagate
12+
propagators
1113
trace
1214
metrics
1315
environment_variables

docs/api/propagate.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
opentelemetry.propagate package
2+
========================================
3+
4+
Module contents
5+
---------------
6+
7+
.. automodule:: opentelemetry.propagate

docs/api/propagators.composite.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
opentelemetry.propagators.composite
2+
====================================================
3+
4+
Module contents
5+
---------------
6+
7+
.. automodule:: opentelemetry.propagators.composite

docs/api/propagators.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
opentelemetry.propagators package
2+
========================================
3+
4+
Subpackages
5+
-----------
6+
7+
.. toctree::
8+
9+
propagators.textmap
10+
propagators.composite

docs/api/propagators.textmap.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
opentelemetry.propagators.textmap
2+
====================================================
3+
4+
Module contents
5+
---------------
6+
7+
.. automodule:: opentelemetry.propagators.textmap

docs/conf.py

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@
9797
# https://github.com/sphinx-doc/sphinx/pull/3744
9898
nitpick_ignore = [
9999
("py:class", "ValueT"),
100+
("py:class", "CarrierT"),
101+
("py:obj", "opentelemetry.propagators.textmap.CarrierT"),
102+
("py:obj", "Union"),
100103
(
101104
"py:class",
102105
"opentelemetry.sdk.metrics._internal.instrument._Synchronous",
@@ -112,23 +115,6 @@
112115
"py:class",
113116
"opentelemetry.trace._LinkBase",
114117
),
115-
# TODO: Understand why sphinx is not able to find this local class
116-
(
117-
"py:class",
118-
"opentelemetry.propagators.textmap.TextMapPropagator",
119-
),
120-
(
121-
"py:class",
122-
"opentelemetry.propagators.textmap.DefaultGetter",
123-
),
124-
(
125-
"any",
126-
"opentelemetry.propagators.textmap.TextMapPropagator.extract",
127-
),
128-
(
129-
"any",
130-
"opentelemetry.propagators.textmap.TextMapPropagator.inject",
131-
),
132118
]
133119

134120
# Add any paths that contain templates here, relative to this directory.

0 commit comments

Comments
 (0)