File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ struct TracerConfig {
72
72
// All styles indicated by `injection_styles` are used for injection.
73
73
// `injection_styles` is overridden by the `DD_TRACE_PROPAGATION_STYLE_INJECT`
74
74
// and `DD_TRACE_PROPAGATION_STYLE` environment variables.
75
- std::vector<PropagationStyle> injection_styles = {PropagationStyle::DATADOG};
75
+ std::vector<PropagationStyle> injection_styles = {PropagationStyle::DATADOG,
76
+ PropagationStyle::W3C};
76
77
77
78
// `extraction_styles` indicates with which tracing systems trace propagation
78
79
// will be compatible when extracting (receiving) trace context.
@@ -82,7 +83,8 @@ struct TracerConfig {
82
83
// `extraction_styles` is overridden by the
83
84
// `DD_TRACE_PROPAGATION_STYLE_EXTRACT` and `DD_TRACE_PROPAGATION_STYLE`
84
85
// environment variables.
85
- std::vector<PropagationStyle> extraction_styles = {PropagationStyle::DATADOG};
86
+ std::vector<PropagationStyle> extraction_styles = {PropagationStyle::DATADOG,
87
+ PropagationStyle::W3C};
86
88
87
89
// `report_hostname` indicates whether the tracer will include the result of
88
90
// `gethostname` with traces sent to the collector.
Original file line number Diff line number Diff line change @@ -1003,12 +1003,12 @@ TEST_CASE("TracerConfig propagation styles") {
1003
1003
TracerConfig config;
1004
1004
config.defaults .service = " testsvc" ;
1005
1005
1006
- SECTION (" default style is Datadog" ) {
1006
+ SECTION (" default style is [ Datadog, W3C] " ) {
1007
1007
auto finalized = finalize_config (config);
1008
1008
REQUIRE (finalized);
1009
1009
1010
1010
const std::vector<PropagationStyle> expected_styles = {
1011
- PropagationStyle::DATADOG};
1011
+ PropagationStyle::DATADOG, PropagationStyle::W3C };
1012
1012
1013
1013
REQUIRE (finalized->injection_styles == expected_styles);
1014
1014
REQUIRE (finalized->extraction_styles == expected_styles);
You can’t perform that action at this time.
0 commit comments