Skip to content

Commit

Permalink
docs: fixing doc references
Browse files Browse the repository at this point in the history
Missing references in the documentation were causing issues
with dependent class definitions.
  • Loading branch information
toumorokoshi committed May 22, 2020
1 parent fc9897f commit 791c31b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docs/api/trace.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ Submodules

trace.sampling
trace.status
trace.span

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

.. automodule:: opentelemetry.trace
.. automodule:: opentelemetry.trace
7 changes: 7 additions & 0 deletions docs/api/trace.span.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
opentelemetry.trace.span
==========================

.. automodule:: opentelemetry.trace.span
:members:
:undoc-members:
:show-inheritance:
2 changes: 1 addition & 1 deletion opentelemetry-api/src/opentelemetry/trace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def start_span(
span in this tracer's context.
By default the current span will be used as parent, but an explicit
parent can also be specified, either a `Span` or a `SpanContext`. If
parent can also be specified, either a `Span` or a `opentelemetry.trace.SpanContext`. If
the specified value is `None`, the created span will be a root span.
The span can be used as context manager. On exiting, the span will be
Expand Down
4 changes: 2 additions & 2 deletions opentelemetry-api/src/opentelemetry/trace/span.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_context(self) -> "SpanContext":
used to create new child spans.
Returns:
A :class:`.SpanContext` with a copy of this span's immutable state.
A :class:`opentelemetry.trace.SpanContext` with a copy of this span's immutable state.
"""

@abc.abstractmethod
Expand Down Expand Up @@ -68,7 +68,7 @@ def add_lazy_event(
def update_name(self, name: str) -> None:
"""Updates the `Span` name.
This will override the name provided via :func:`Tracer.start_span`.
This will override the name provided via :func:`opentelemetry.trace.Tracer.start_span`.
Upon this update, any sampling behavior based on Span name will depend
on the implementation.
Expand Down
2 changes: 1 addition & 1 deletion opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ class Span(trace_api.Span):
Args:
name: The name of the operation this span represents
context: The immutable span context
parent: This span's parent's `SpanContext`, or
parent: This span's parent's `opentelemetry.trace.SpanContext`, or
null if this is a root span
sampler: The sampler used to create this span
trace_config: TODO
Expand Down

0 comments on commit 791c31b

Please sign in to comment.