Network events

You can control which URLs are recorded. You can exclude any URL you want by specifying its pattern and optionally you can instruct the extention to filter out any already captured events matching specified pattern.

If you have multiple URL patterns you want to exclude, you can pass them as an array in the first argument (instead of single string pattern). In this case all the pattern will be added at once.

    // Without filtering existing URLs
    Bugsee.excludeUrl("http:(.*?).example.com");

    // ... or with filtering existing URLs
    Bugsee.excludeUrl("http:(.*?).example.com", true);

    // Bulk pattern exclusion
    Bugsee.excludeUrl(["http:(.*?).example.com", "http:(.*?).somedomain.com", "http:(.*?).test.com"]);

Sometimes you want to revert the excluded URLs and start capturing their usage again. In this case you must include them back with includeUrl(). Please note, that URL patterns must exactly match the ones you added via excludeUrl().

    // Without filtering existing URLs
    Bugsee.includeUrl("http:(.*?).example.com");

    // Bulk pattern inclusion
    Bugsee.includeUrl(["http:(.*?).example.com", "http:(.*?).somedomain.com", "http:(.*?).test.com"]);