1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-22 20:06:07 +02:00
opentelemetry-go/propagation
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
..
baggage_test.go Rename otel/label -> otel/attribute (#1541) 2021-02-18 12:59:37 -05:00
baggage.go Rename otel/label -> otel/attribute (#1541) 2021-02-18 12:59:37 -05:00
doc.go Move baggage and propagation to separate packages (#1325) 2020-11-13 07:34:24 -08:00
propagation_test.go Add Keys() method to propagation.TextMapCarrier (#1544) 2021-02-17 08:04:49 -08:00
propagation.go Add Keys() method to propagation.TextMapCarrier (#1544) 2021-02-17 08:04:49 -08:00
propagators_test.go Store current Span instead of local and remote SpanContext in context.Context (#1731) 2021-03-29 08:55:44 -07:00
trace_context_benchmark_test.go Make SpanContext Immutable (#1573) 2021-03-09 08:17:29 -08:00
trace_context_example_test.go Move Version function and code from global to toplevel (#1330) 2020-11-16 09:30:54 -08:00
trace_context_test.go Store current Span instead of local and remote SpanContext in context.Context (#1731) 2021-03-29 08:55:44 -07:00
trace_context.go Make TraceFlags spec-compliant (#1770) 2021-04-05 10:21:42 -07:00