fix: tracer typo in fetchxhr examples (#2680)

This commit is contained in:
Nev 2021-12-21 10:14:51 -08:00 committed by GitHub
parent 2c8601fe9d
commit 8b9935b937
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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) => {

View File

@ -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) => {