Skip to content

Commit fdfb222

Browse files
committed
fix(http): set isForceSampled based on mustCollect
1 parent 8d2b0e8 commit fdfb222

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/providers/httpTransaction/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ HttpTransaction.prototype.onServerSend = function (data) {
153153

154154
var isSampled = trace.isSampled || (1 / this.sampleRate) > Math.random();
155155
if (data.mustCollect || isSampled) {
156-
trace.isForceSampled = !!trace.isSampled;
156+
trace.isForceSampled = !!data.mustCollect;
157157
delete trace.isSampled;
158158

159159
this.traces.push(trace);

0 commit comments

Comments
 (0)