Skip to content

Commit

Permalink
refactor addUrlParams()
Browse files Browse the repository at this point in the history
  • Loading branch information
EddeCCC committed Oct 11, 2023
1 parent fbc1a06 commit afff597
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/impl/instrumentation/urlParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export function addUrlParams(span: Span, url: string, excludeKeys: string[] = []
const [key, value] = keyValue.split("=");
span.setAttribute(key, value);

if(excludeKeys && !excludeKeys.includes(key)) window.BOOMR.addVar(key, value);
// if excludeKey equals null OR key is not included, add var to beacon
if(!excludeKeys || !excludeKeys.includes(key)) window.BOOMR.addVar(key, value);
}
}
}

0 comments on commit afff597

Please sign in to comment.