question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exclude/ignore URLs?

See original GitHub issue

Hello,

I can’t find any option in the docs, so my question is: how can I disable the agent sending transactions for certain URLs like e.g. the google analytics one? Right now (by default config) each time an event is sent to the google analytics service via HTTP, another request is made by the agent to report that request… I would expect something like this in the config object:

excludeOrigins: ['analytics.google.com', 'whatever.org', 'etc…']

But that option doesn’t exist! 😅 Is there anything in place in order to do this?

Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nuragiccommented, Mar 4, 2020

Ahh ok, now I see! Got it! Many thanks!

0reactions
Frintropcommented, Jun 15, 2020

THx. Yes. Solved it.

Von: Vignesh Shanmugam notifications@github.com Antworten an: elastic/apm-agent-rum-js reply@reply.github.com Datum: Montag, 15. Juni 2020 um 12:09 An: elastic/apm-agent-rum-js apm-agent-rum-js@noreply.github.com Cc: Andre Frintrop andre.frintrop@objectiveit.de, Mention mention@noreply.github.com Betreff: Re: [elastic/apm-agent-rum-js] Exclude/ignore URLs? (#665)

@Frintrophttps://github.com/Frintrop You have to pass in RegExp object and not string. Check the documentation here https://www.elastic.co/guide/en/apm/agent/rum-js/current/configuration.html#ignore-transactions

const config = {

ignoreTransactions: [new RegExp(‘’)]

}

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/elastic/apm-agent-rum-js/issues/665#issuecomment-644035120, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABP63MTDMOYU4XXJYJHVUXTRWXXG7ANCNFSM4K7HG7ZA.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Excluding URLs for a Filter in a Spring Web Application
Learn how to exclude URLs from being executed in Spring Web filters. A bit advanced but highly highly useful.
Read more >
How to exclude URLs/blocks/words from translation?
If you want to exclude more URLs, click on "Add Rule" and repeat the steps. b. Exclude URLs when deleting the translations. You...
Read more >
How To Exclude URL Query Parameters in Google Analytics
Under Admin > View Settings > Exclude Query Parameters, list the query parameters that you want to exclude from your page paths. This...
Read more >
Exclude a URL in Google Analytics - Thinkers and Doers
Don't let internal and bogus URLs spoil your Google Analytics reports. This tutorial will show you how to easily filter them out.
Read more >
Can I exclude some concrete urls from <url-pattern> inside ...
Map the folder with your static resource files to the default servlet. Create a servlet filter and put it before the GuiceFilter in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found