Skip to content

Commit d78ea98

Browse files
authored
Change sphinx default role to "any", update docs (open-telemetry#40)
1 parent 826346f commit d78ea98

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

docs/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424

2525
# -- General configuration ---------------------------------------------------
2626

27+
# Easy automatic cross-references for `code in backticks`
28+
default_role = 'any'
29+
2730
# Add any Sphinx extension module names here, as strings. They can be
2831
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
2932
# ones.

opentelemetry-api/src/opentelemetry/trace/__init__.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def start(self) -> None:
7575
Each span represents a single operation. The span's start time is the
7676
wall time at which the operation started.
7777
78-
Only the first call to ``start`` should modify the span, and
78+
Only the first call to `start` should modify the span, and
7979
implementations are free to ignore or raise on further calls.
8080
"""
8181

@@ -84,7 +84,7 @@ def end(self) -> None:
8484
8585
The span's end time is the wall time at which the operation finished.
8686
87-
Only the first call to ``end`` should modify the span, and
87+
Only the first call to `end` should modify the span, and
8888
implementations are free to ignore or raise on further calls.
8989
"""
9090

@@ -153,9 +153,8 @@ def start_span(self,
153153
this tracer's context.
154154
155155
By default the current span will be used as parent, but an explicit
156-
parent can also be specified, either a ``Span`` or a ``SpanContext``.
157-
If the specified value is ``None``, the created span will be a root
158-
span.
156+
parent can also be specified, either a `Span` or a `SpanContext`. If
157+
the specified value is `None`, the created span will be a root span.
159158
160159
On exiting the context manager stop the span and set its parent as the
161160
current span.

0 commit comments

Comments
 (0)