Skip to content

Commit

Permalink
Tracers reference an InstrumentationLibrary rather than a Resource (#616
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mwear authored May 21, 2020
1 parent 0121fc9 commit 1a0395e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions specification/trace/sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,19 @@ TODO: Split out the parent handling.
## Tracer Creation

New `Tracer` instances are always created through a `TracerProvider` (see
[API](api.md#obtaining-a-tracer)). The `name` and `version` arguments
supplied to the `TracerProvider` must be used to create a
[`Resource`](../resource/sdk.md) instance which is stored on the created `Tracer`.
[API](api.md#obtaining-a-tracer)). The `name` and `version` arguments
supplied to the `TracerProvider` must be used to create an
[`InstrumentationLibrary`][otep-83] instance which is stored on the created
`Tracer`.

All configuration objects (SDK specific) and extension points (span processors,
propagators) must be provided to the `TracerProvider`. `Tracer` instances must
not duplicate this data (unless for read-only access) to avoid that different
`Tracer` instances of a `TracerProvider` have different versions of these data.

The readable representations of all `Span` instances created by a `Tracer` must
provide a `getLibraryResource` method that returns this `Resource` information
held by the `Tracer`.
provide a `getInstrumentationLibrary` method that returns the
`InstrumentationLibrary` information held by the `Tracer`.

## Span processor

Expand Down Expand Up @@ -407,3 +408,4 @@ public interface SpanExporter {
```

[trace-flags]: https://www.w3.org/TR/trace-context/#trace-flags
[otep-83]: https://github.com/open-telemetry/oteps/blob/master/text/0083-component.md

0 comments on commit 1a0395e

Please sign in to comment.