fix: tracer typo in fetchxhr examples (#2680)
This commit is contained in:
parent
2c8601fe9d
commit
8b9935b937
|
@ -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) => {
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue