Filtering incoming transactions

Hello,

I can’t seem to figure out how I can filter the transactions (By url).
Currently my Sentry x Node.js Express setup also logs all the assets
as a transaction, but I don’t need that to be logged.

I tried to use InboundFilters
new Sentry.Integrations.InboundFilters({
denyUrls: [
/assets/i,
/js/i,
/css/i,
/images/i,
/logo/i,
/Logo/i
]
})

But this didn’t work. How can I filter transactions by url?