You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DEBUG_BUILD&&logger.log(`[Tracing] Not sampling span because HTTP method is '${method}' for ${spanName}`);
129
-
130
-
return{
131
-
...wrapSamplingDecision({
132
-
decision: SamplingDecision.NOT_RECORD,
133
-
context,
134
-
spanAttributes,
135
-
sampleRand,
136
-
downstreamTraceSampleRate: 0,// we don't want to sample anything in the downstream trace either
137
-
}),
138
-
};
139
-
}
140
-
141
-
if(
142
-
!sampled&&
143
-
// We check for `parentSampled === undefined` because we only want to record client reports for spans that are trace roots (ie. when there was incoming trace)
144
-
parentSampled===undefined
145
-
){
146
-
DEBUG_BUILD&&logger.log('[Tracing] Discarding root span because its trace was not chosen to be sampled.');
downstreamTraceSampleRate: 0,// we don't want to sample anything in the downstream trace either
169
145
}),
170
146
};
171
147
}
148
+
149
+
if(
150
+
!sampled&&
151
+
// We check for `parentSampled === undefined` because we only want to record client reports for spans that are trace roots (ie. when there was incoming trace)
152
+
parentSampled===undefined
153
+
){
154
+
DEBUG_BUILD&&logger.log('[Tracing] Discarding root span because its trace was not chosen to be sampled.');
0 commit comments