Skip to content

Consolidate shared URL/utility helpers across instrumentations #251

@martinkuba

Description

@martinkuba

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).

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions