Skip to content

Commit

Permalink
docs: fix shouldSample call in express example (#685)
Browse files Browse the repository at this point in the history
Co-authored-by: Rauno Viskus <[email protected]>
  • Loading branch information
andreatosato and rauno56 authored Oct 14, 2021
1 parent 5a00bed commit f3400f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/express/tracer.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function filterSampler(filterFn, parent) {
if (!filterFn(spanName, spanKind, attr)) {
return { decision: opentelemetry.SamplingDecision.NOT_RECORD };
}
return parent.shouldSample(ctx, tid, name, kind, attr, links);
return parent.shouldSample(ctx, tid, spanName, spanKind, attr, links);
},
toString() {
return `FilterSampler(${parent.toString()})`;
Expand Down

0 comments on commit f3400f0

Please sign in to comment.