opentelemetry-go/sdk
Anthony Mirabella c6b92d5b20
Make TraceFlags spec-compliant (#1770)
* Make TraceFlags spec-compliant

* Remove `trace.FlagsDebug` and `trace.FlagsDeferred`
  * These are used only by the B3 propagator and will be handled there in the `context.Context`
* Make `trace.TraceFlags` a defined type, aliasing `byte`
* Move `IsSampled` method from `trace.SpanContext` to `trace.TraceFlags`
* Add `Sampled(bool)` method to `trace.TraceFlags`
* Implement `Stringer` and `json.Marshaler` for `trace.TraceFlags`

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Rename `TraceFlags.Sampled()` to `TraceFlags.WithSampled()` for consistency

* Restore `SpanContext.IsSampled()` method.

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
2021-04-05 10:21:42 -07:00
..
export Update SpanSnapshot to use parent SpanContext (#1748) 2021-03-30 08:59:54 -07:00
instrumentation Update default branch name (#1505) 2021-02-04 11:13:25 -08:00
internal Move Version function and code from global to toplevel (#1330) 2020-11-16 09:30:54 -08:00
metric Release v0.19.0 (#1710) 2021-03-19 08:36:17 -07:00
resource Comply with OpenTelemetry attributes specification (#1703) 2021-03-17 20:48:43 -04:00
trace Make TraceFlags spec-compliant (#1770) 2021-04-05 10:21:42 -07:00
README.md Trace sdk (#65) 2019-08-02 13:52:55 -07:00
go.mod Release v0.19.0 (#1710) 2021-03-19 08:36:17 -07:00
go.sum Bump github.com/google/go-cmp from 0.5.4 to 0.5.5 (#1667) 2021-03-08 12:15:49 -08:00

README.md