From 8b9935b937cdcb7cfbd62974bd71dda1e473f403 Mon Sep 17 00:00:00 2001 From: Nev <54870357+MSNev@users.noreply.github.com> Date: Tue, 21 Dec 2021 10:14:51 -0800 Subject: [PATCH] fix: tracer typo in fetchxhr examples (#2680) --- examples/tracer-web/examples/fetchXhr/index.js | 2 +- examples/tracer-web/examples/fetchXhrB3/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/tracer-web/examples/fetchXhr/index.js b/examples/tracer-web/examples/fetchXhr/index.js index 745d0080fe..009de72f62 100644 --- a/examples/tracer-web/examples/fetchXhr/index.js +++ b/examples/tracer-web/examples/fetchXhr/index.js @@ -68,7 +68,7 @@ const prepareClickEvent = () => { const element1 = document.getElementById('button1'); const element2 = document.getElementById('button2'); - const clickHandler = (fetchFn) => () => { + const clickHandler = (fetchFn) => { const singleSpan = webTracerWithZone.startSpan('files-series-info'); context.with(trace.setSpan(context.active(), singleSpan), () => { fetchFn(url).then((_data) => { diff --git a/examples/tracer-web/examples/fetchXhrB3/index.js b/examples/tracer-web/examples/fetchXhrB3/index.js index 669743b2cf..d37bfb7d6f 100644 --- a/examples/tracer-web/examples/fetchXhrB3/index.js +++ b/examples/tracer-web/examples/fetchXhrB3/index.js @@ -70,7 +70,7 @@ const prepareClickEvent = () => { const element1 = document.getElementById('button1'); const element2 = document.getElementById('button2'); - const clickHandler = (fetchFn) => () => { + const clickHandler = (fetchFn) => { const singleSpan = webTracerWithZone.startSpan('files-series-info'); context.with(trace.setSpan(context.active(), singleSpan), () => { fetchFn(url).then((_data) => {