Skip to content

Commit

Permalink
fix: tracer typo in fetchxhr examples (#2680)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSNev authored Dec 21, 2021
1 parent 2c8601f commit 8b9935b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/tracer-web/examples/fetchXhr/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
2 changes: 1 addition & 1 deletion examples/tracer-web/examples/fetchXhrB3/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 8b9935b

Please sign in to comment.