Filtering by error's origin file location


Main problem:
I’d like to filter out errors that do not origin in files from our cdn.

Up until recently I had sentry setup using raven-js. Im in the process of migrating to sentry-javascript (v5).
Raven’s errors were sent with transaction tag that contained file address at our cdn (or no transaction tag at all, but lets not worry about those now).
Errors sent by sentry-javascript do not have transaction tag straight out of bag. So I added Transaction integration but the values are now something entirely different (follow pattern module/function).

The question:
How to achieve filtering by error’s origin file location? Is transaction tag even a good aproach?

My plan B is to revert to raven-js and that would be sad.

I hope this is a good place to ask this. I feel like I just need a push in the right direction.

I’ll be thankfull for any tips.