Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 64d0426

Browse files
author
alrex
authored
various fixes to the documentation (open-telemetry#1828)
1 parent 3a0d38f commit 64d0426

File tree

14 files changed

+35
-31
lines changed

14 files changed

+35
-31
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This is the main repo for OpenTelemetry Python. Nevertheless, there are other re
1919
Please take a look at this list first, your contributions may belong in one of these repos better:
2020

2121
1. [OpenTelemetry Contrib](https://github.com/open-telemetry/opentelemetry-python-contrib): Instrumentations for third-party
22-
libraries and frameworks. There is an ongoing effort to migrate into the Opentelemetry Contrib repo some of the existing
22+
libraries and frameworks. There is an ongoing effort to migrate into the OpenTelemetry Contrib repo some of the existing
2323
programmatic instrumentations that are now in the `ext` directory in the main OpenTelemetry repo. Please ask in the Slack
2424
channel (see below) for guidance if you want to contribute with these instrumentations.
2525

dev-requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ isort~=5.8
44
black~=20.8b1
55
httpretty~=1.0
66
mypy==0.812
7-
sphinx~=2.1
8-
sphinx-rtd-theme~=0.4
9-
sphinx-autodoc-typehints~=1.10.2
7+
sphinx~=3.5.4
8+
sphinx-rtd-theme~=0.5
9+
sphinx-autodoc-typehints
1010
pytest>=6.0
1111
pytest-cov>=2.8
1212
readme-renderer~=24.0

docs-requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
sphinx~=2.4
2-
sphinx-rtd-theme~=0.4
1+
sphinx~=3.5.4
2+
sphinx-rtd-theme~=0.5
33
sphinx-autodoc-typehints
4+
# used to generate docs for the website
5+
sphinx-jekyll-builder
46

57
# Need to install the api/sdk in the venv for autodoc. Modifying sys.path
68
# doesn't work for pkg_resources.

docs/conf.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,15 @@
125125
# List of patterns, relative to source directory, that match files and
126126
# directories to ignore when looking for source files.
127127
# This pattern also affects html_static_path and html_extra_path.
128-
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
128+
exclude_patterns = [
129+
"_build",
130+
"Thumbs.db",
131+
".DS_Store",
132+
"examples/fork-process-model/flask-gunicorn",
133+
"examples/fork-process-model/flask-uwsgi",
134+
"examples/error_handler/error_handler_0",
135+
"examples/error_handler/error_handler_1",
136+
]
129137

130138
autodoc_default_options = {
131139
"members": True,

docs/examples/basic_context/README.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
Basic Context
22
=============
33

4-
These examples show how context is propagated through Spans in OpenTelemetry.
5-
6-
There are three different examples:
4+
These examples show how context is propagated through Spans in OpenTelemetry. There are three different
5+
examples:
76

87
* implicit_context: Shows how starting a span implicitly creates context.
9-
108
* child_context: Shows how context is propagated through child spans.
11-
129
* async_context: Shows how context can be shared in another coroutine.
1310

1411
The source files of these examples are available :scm_web:`here <docs/examples/basic_context/>`.

docs/examples/basic_tracer/README.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
Basic Trace
22
===========
33

4-
These examples show how to use OpenTelemetry to create and export Spans.
5-
6-
There are two different examples:
4+
These examples show how to use OpenTelemetry to create and export Spans. There are two different examples:
75

86
* basic_trace: Shows how to configure a SpanProcessor and Exporter, and how to create a tracer and span.
9-
107
* resources: Shows how to add resource information to a Provider.
118

129
The source files of these examples are available :scm_web:`here <docs/examples/basic_tracer/>`.

docs/examples/datadog_exporter/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Datadog Exporter Example
2-
========================
1+
Datadog Exporter
2+
================
33

44
These examples show how to use OpenTelemetry to send tracing data to Datadog.
55

docs/examples/django/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
OpenTelemetry Django Instrumentation Example
2-
============================================
1+
Django Instrumentation
2+
======================
33

44
This shows how to use ``opentelemetry-instrumentation-django`` to automatically instrument a
55
Django app.

docs/examples/opencensus-exporter-tracer/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
OpenTelemetry Collector Tracer OpenCensus Exporter Example
2-
==========================================================
1+
OpenCensus Exporter
2+
===================
33

44
This example shows how to use the OpenCensus Exporter to export traces to the
55
OpenTelemetry collector.

docs/examples/opentracing/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
OpenTracing Shim Example
2-
==========================
1+
OpenTracing Shim
2+
================
33

44
This example shows how to use the :doc:`opentelemetry-opentracing-shim
55
package <../../shim/opentracing_shim/opentracing_shim>`

docs/exporter/jaeger/jaeger.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Opentelemetry Jaeger Exporters
1+
OpenTelemetry Jaeger Exporters
22
==============================
33

44
.. automodule:: opentelemetry.exporter.jaeger

docs/exporter/otlp/otlp.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Opentelemetry OTLP Exporters
1+
OpenTelemetry OTLP Exporters
22
============================
33

44
.. automodule:: opentelemetry.exporter.otlp

docs/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,31 +72,31 @@ install <https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs>
7272

7373
.. toctree::
7474
:maxdepth: 1
75-
:caption: OpenTelemetry Python Packages
75+
:caption: Core Packages
7676
:name: packages
7777

7878
api/api
7979
sdk/sdk
8080

8181
.. toctree::
8282
:maxdepth: 2
83-
:caption: OpenTelemetry Exporters
83+
:caption: Exporters
8484
:name: exporters
8585
:glob:
8686

8787
exporter/**
8888

8989
.. toctree::
9090
:maxdepth: 2
91-
:caption: OpenTelemetry Shims
91+
:caption: Shims
9292
:name: Shims
9393
:glob:
9494

9595
shim/**
9696

9797
.. toctree::
9898
:maxdepth: 1
99-
:caption: OpenTelemetry Python Performance
99+
:caption: Performance
100100
:name: performance-tests
101101
:glob:
102102

opentelemetry-api/src/opentelemetry/util/_time.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
if version_info.minor < 7:
1919
getLogger(__name__).warning( # pylint: disable=logging-not-lazy
2020
"You are using Python 3.%s. This version does not support timestamps "
21-
"with nanosecond precision and the Opentelemetry SDK will use "
21+
"with nanosecond precision and the OpenTelemetry SDK will use "
2222
"millisecond precision instead. Please refer to PEP 546 for more "
2323
"information. Please upgrade to Python 3.7 or newer to use nanosecond "
2424
"precision." % version_info.minor

0 commit comments

Comments
 (0)