File tree 2 files changed +6
-8
lines changed
ot31CompatibilityTest/groovy
ot33CompatibilityTest/groovy
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -114,11 +114,10 @@ class OT31ApiTest extends DDSpecification {
114
114
def expectedTraceparent = " 00-${ traceId.toHexStringPadded(32)} " +
115
115
" -${ DDSpanId.toHexStringPadded(spanId)} " +
116
116
" -" + (propagatedPriority > 0 ? " 01" : " 00" )
117
- def expectedTracestate = " dd=s:${ propagatedPriority} "
118
117
def effectiveSamplingMechanism = contextPriority == UNSET ? AGENT_RATE : samplingMechanism
119
- if (propagatedPriority > 0 ) {
120
- expectedTracestate + = " ;t.dm:-" + effectiveSamplingMechanism
121
- }
118
+ def expectedTracestate = " dd=s: ${ propagatedPriority } " +
119
+ (propagatedPriority > 0 ? " ;t.dm:-" + effectiveSamplingMechanism : " " ) +
120
+ " ;t.tid: ${ traceId.toHexStringPadded(32).substring(0, 16) } "
122
121
def expectedTextMap = [
123
122
" x-datadog-trace-id" : context. toTraceId(),
124
123
" x-datadog-parent-id" : context. toSpanId(),
Original file line number Diff line number Diff line change @@ -103,11 +103,10 @@ class OT33ApiTest extends DDSpecification {
103
103
def expectedTraceparent = " 00-${ traceId.toHexStringPadded(32)} " +
104
104
" -${ DDSpanId.toHexStringPadded(spanId)} " +
105
105
" -" + (propagatedPriority > 0 ? " 01" : " 00" )
106
- def expectedTracestate = " dd=s:${ propagatedPriority} "
107
106
def effectiveSamplingMechanism = contextPriority == UNSET ? AGENT_RATE : samplingMechanism
108
- if (propagatedPriority > 0 ) {
109
- expectedTracestate + = " ;t.dm:-" + effectiveSamplingMechanism
110
- }
107
+ def expectedTracestate = " dd=s: ${ propagatedPriority } " +
108
+ (propagatedPriority > 0 ? " ;t.dm:-" + effectiveSamplingMechanism : " " ) +
109
+ " ;t.tid: ${ traceId.toHexStringPadded(32).substring(0, 16) } "
111
110
def expectedTextMap = [
112
111
" x-datadog-trace-id" : context. toTraceId(),
113
112
" x-datadog-parent-id" : context. toSpanId(),
You can’t perform that action at this time.
0 commit comments