1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-14 10:13:10 +02:00
opentelemetry-go/api/trace/testtrace
Krzesimir Nowak c23e09c7f7
Fix clobbering of the span context if extraction fails (#656)
* Do not put span context into go context if extraction failed

This causes problems if multiple trace propagators are chained,
because the first propagator in chain may extract a valid span
context, then next propagator will overwrite it with an empty span
context when required headers in supplier are missing.

* Test for clobbering propagators

Co-authored-by: Joshua MacDonald <jmacd@users.noreply.github.com>
2020-04-27 11:37:40 -07:00
..
b3_propagator_benchmark_test.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
b3_propagator_data_test.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
b3_propagator_test.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
event.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
generator.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
package.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
propagator_test.go Fix clobbering of the span context if extraction fails (#656) 2020-04-27 11:37:40 -07:00
span_test.go Increase the visibility of the api/key package (#650) 2020-04-21 20:26:51 -07:00
span.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
trace_context_propagator_benchmark_test.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
trace_context_propagator_test.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00
tracer_test.go Increase the visibility of the api/key package (#650) 2020-04-21 20:26:51 -07:00
tracer.go Update License header for all source files (#586) 2020-03-23 22:41:10 -07:00