@@ -34,6 +34,7 @@ class Config {
34
34
static constexpr auto kJAEGER_SERVICE_NAME_ENV_PROP = " JAEGER_SERVICE_NAME" ;
35
35
static constexpr auto kJAEGER_TAGS_ENV_PROP = " JAEGER_TAGS" ;
36
36
static constexpr auto kJAEGER_JAEGER_DISABLED_ENV_PROP = " JAEGER_DISABLED" ;
37
+ static constexpr auto kJAEGER_JAEGER_TRACEID_128BIT_ENV_PROP = " JAEGER_TRACEID_128BIT" ;
37
38
38
39
#ifdef JAEGERTRACING_WITH_YAML_CPP
39
40
@@ -48,6 +49,8 @@ class Config {
48
49
49
50
const auto disabled =
50
51
utils::yaml::findOrDefault<bool >(configYAML, " disabled" , false );
52
+ const auto traceId128Bit =
53
+ utils::yaml::findOrDefault<bool >(configYAML, " traceid_128bit" , false );
51
54
const auto samplerNode = configYAML[" sampler" ];
52
55
const auto sampler = samplers::Config::parse (samplerNode);
53
56
const auto reporterNode = configYAML[" reporter" ];
@@ -58,12 +61,13 @@ class Config {
58
61
const auto baggageRestrictions =
59
62
baggage::RestrictionsConfig::parse (baggageRestrictionsNode);
60
63
return Config (
61
- disabled, sampler, reporter, headers, baggageRestrictions, serviceName);
64
+ disabled, traceId128Bit, sampler, reporter, headers, baggageRestrictions, serviceName);
62
65
}
63
66
64
67
#endif // JAEGERTRACING_WITH_YAML_CPP
65
68
66
69
explicit Config (bool disabled = false ,
70
+ bool traceId128Bit = false ,
67
71
const samplers::Config& sampler = samplers::Config(),
68
72
const reporters::Config& reporter = reporters::Config(),
69
73
const propagation::HeadersConfig& headers =
@@ -73,6 +77,7 @@ class Config {
73
77
const std::string& serviceName = "",
74
78
const std::vector<Tag>& tags = std::vector<Tag>())
75
79
: _disabled(disabled)
80
+ , _traceId128Bit(traceId128Bit)
76
81
, _serviceName(serviceName)
77
82
, _tags(tags)
78
83
, _sampler(sampler)
@@ -84,6 +89,8 @@ class Config {
84
89
85
90
bool disabled () const { return _disabled; }
86
91
92
+ bool traceId128Bit () const { return _traceId128Bit; }
93
+
87
94
const samplers::Config& sampler () const { return _sampler; }
88
95
89
96
const reporters::Config& reporter () const { return _reporter; }
@@ -103,6 +110,7 @@ class Config {
103
110
104
111
private:
105
112
bool _disabled;
113
+ bool _traceId128Bit;
106
114
std::string _serviceName;
107
115
std::vector< Tag > _tags;
108
116
samplers::Config _sampler;
0 commit comments