-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude/ignore URLs? #665
Comments
Thanks for using the agent . if you already know the transaction name. You can use this |
Hey thanks for answering! The problem is that I'm not creating custom transactions, it's an automatic one (http-request)... so I don't know the name. In general it's good to track all HTTP requests... however, there're origins that we trust, so we don't want to track those requests... |
When you mean by trused domains (assuming they are third party providers), you can still use the Example:
|
Ahh ok, now I see! Got it! Many thanks! |
Hi .. i tried that with reg exp but it looks like apm is ignoring my regexp. or or or |
@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('')]
} |
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)
@Frintrop<https://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 GitHub<#665 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABP63MTDMOYU4XXJYJHVUXTRWXXG7ANCNFSM4K7HG7ZA>.
|
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!
The text was updated successfully, but these errors were encountered: