From f3400f096f2e83a9ea18272e6020d654cd7a9191 Mon Sep 17 00:00:00 2001 From: Andrea Tosato Date: Thu, 14 Oct 2021 07:05:51 +0200 Subject: [PATCH] docs: fix shouldSample call in express example (#685) Co-authored-by: Rauno Viskus --- examples/express/tracer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/express/tracer.js b/examples/express/tracer.js index 638f377b9d..e41f857348 100644 --- a/examples/express/tracer.js +++ b/examples/express/tracer.js @@ -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()})`;