Skip to content

Instantly share code, notes, and snippets.

@bradyclifford
Last active September 2, 2022 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradyclifford/ad6d106ec14fc9440c5e7663183c1b06 to your computer and use it in GitHub Desktop.
Save bradyclifford/ad6d106ec14fc9440c5e7663183c1b06 to your computer and use it in GitHub Desktop.
AppInsights: Exclude URL by path base route
// Only capture requests for a specific path based-route
excludeRequestFromAutoTrackingPatterns: [
new RegExp(
`^https?:\\/\\/([^\\/\\s]+\\/)(?!${escapeRegExp(removeSlashes(pathBase))}).+$`,
'i'
)
]
@bradyclifford
Copy link
Author

bradyclifford commented Sep 2, 2022

For FullStory, you would just add https://rs.fullstory.com.

excludeRequestFromAutoTrackingPatterns: [ 'https://rs.fullstory.com ' ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment