1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-07 23:02:15 +02:00
opentelemetry-go/sdk
Tyler Yahn d143b8fbf8
Unify API Span Start/End Options (#1108)
* Unify API Span Start/End Options

Replace both with `SpanOption`. Add a unified `SpanConfig` to match and
a `SpanConfigure` function to parse a `SpanConfig` from `SpanOption`s.

Update all the related options to use new `SpanOption`s.

* No non-zero SpanConfig defaults

The SDK uses an internal clock for the current time that cannot be use
if it does not know the time has not been set.

* Append attributes for WithAttributes

This preserves existing behavior.

* Add unit test for SpanConfigure

* Propagate changes

* Update append option documentation

* Update testing comments

* Move comments on guarantees to appropriate function

* Add documentation for SDK methods

Include SDK implementation specific information in the Tracer Start
method and Span End method.

* Add changes to Changelog

* Apply suggestions from code review

Co-authored-by: ET <evantorrie@users.noreply.github.com>

* Update the SpanKind comment in the  SpanConfig

Try for a less tautological comment.

Co-authored-by: ET <evantorrie@users.noreply.github.com>
2020-09-03 07:34:36 -07:00
..
export Unify api/label and api/kv in new label package (#1060) 2020-08-17 20:25:03 -07:00
instrumentation Update Tracer API with instrumentation version (#802) 2020-06-09 11:47:54 -07:00
internal Remove google.golang.org/grpc/codes dependency from API by adding an equivalent codes package (#1046) 2020-08-10 09:17:09 -07:00
metric #872 Make metric test helpers public (#1040) 2020-08-27 13:03:56 -07:00
resource Unify api/label and api/kv in new label package (#1060) 2020-08-17 20:25:03 -07:00
trace Unify API Span Start/End Options (#1108) 2020-09-03 07:34:36 -07:00
go.mod Bump google.golang.org/grpc from 1.31.0 to 1.31.1 in /sdk (#1105) 2020-08-27 12:19:01 -07:00
go.sum Bump google.golang.org/grpc from 1.31.0 to 1.31.1 in /sdk (#1105) 2020-08-27 12:19:01 -07:00
opentelemetry.go Release v0.11.0 (#1089) 2020-08-24 22:38:37 -04:00
README.md Trace sdk (#65) 2019-08-02 13:52:55 -07:00