Survey utility helpers across all instrumentations and lift the genuinely cross-cutting ones into src/utils/. Initial candidates:
defaultSanitizeUrl (currently src/navigation/utils.ts) — generic URL sanitizer (redacts credentials and sensitive query parameters). Useful anywhere we capture URLs.
isHashChange (currently src/navigation/utils.ts) — more navigation-specific (used to determine browser.navigation.hash_change). Move only if a second consumer materializes; otherwise leave it in place.
Other instrumentations may have similar candidates worth surveying (e.g. anything in web-vitals, user-action, resource-timing that's framed as a private helper but is actually reusable). Today src/utils/ only contains DOM helpers (getElementCSSSelector, getElementXPath).
Survey utility helpers across all instrumentations and lift the genuinely cross-cutting ones into
src/utils/. Initial candidates:defaultSanitizeUrl(currentlysrc/navigation/utils.ts) — generic URL sanitizer (redacts credentials and sensitive query parameters). Useful anywhere we capture URLs.isHashChange(currentlysrc/navigation/utils.ts) — more navigation-specific (used to determinebrowser.navigation.hash_change). Move only if a second consumer materializes; otherwise leave it in place.Other instrumentations may have similar candidates worth surveying (e.g. anything in
web-vitals,user-action,resource-timingthat's framed as a private helper but is actually reusable). Todaysrc/utils/only contains DOM helpers (getElementCSSSelector,getElementXPath).