Skip to content

Commit

Permalink
added note that Span is an interface (open-telemetry#89)
Browse files Browse the repository at this point in the history
* added note that Span is an interface

* Update specification/tracing-api.md
  • Loading branch information
SergeyKanzhelev authored and Sergey Kanzhelev committed Feb 18, 2020
1 parent 7eddda8 commit 8f36da7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions specification/tracing-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ mis-use of spans as an in-process information propagation mechanism.
The only two getters on span returns `SpanContext` and the flag on whether span
will be recorded.

`Span` interface can have alternative implementations. It is expected that
alternative implementations will be implementing vendor-specific logic. However,
implementation MUST NOT allow to directly create a `Span`. Alternative
implementation of `Span` can only be returned from alternative implementation of
`SpanBuilder`, which in turn is only available from the `Tracer`. See [Span
creation](#span-creation).

### Span creation

TODO: SpanBuilder API https://github.com/open-telemetry/opentelemetry-specification/issues/37
Expand Down

0 comments on commit 8f36da7

Please sign in to comment.