Closed nevi-me closed 6 years ago
Yes, when you call app.use
to set up the tracing middleware, you can pass an optional argument to have it match a subset of requests. Look at the examples in the using-middleware documentation.
Thanks, looking at the documentation, there doesn't seem to be a way of saying "match all routes that aren't CSS/JS requests".
I'm looking at adding some logic to exclude routes that I'm not interested in, will let you know how that goes.
I'm implementing tracing in a project, using Jaeger as the backend. I'm getting a lot of noise with URLs for CSS, JS and other static assets being traced. Is there a way of disabling this?
Thanks