Skip to content

parseUrl from sdk-trace-web does not support relative paths anymore #2884

@pichlermarc

Description

@pichlermarc

The changes from #2689 might have introduced a breaking change to 1.1.0 that causes relative paths to not be parsed anymore.

The current implementation of parseUrl now throws when providing relative paths as parameter as it calls the URL constructor with it. It previously tolerated relative paths. This caused tests for instrumentation-fetch and instrumentation-xml-http-request in #2871 to fail when updating the dependency to sdk-trace-web from 1.0.1 to 1.1.1.

This might also affect others that are upgrading from 1.0.x to 1.1.0/1.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomersup-for-grabsGood for taking. Extra help will be provided by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions