-
Notifications
You must be signed in to change notification settings - Fork 206
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
Add TransactionIgnoreUrls setting #904
Add TransactionIgnoreUrls setting #904
Conversation
💚 Build SucceededExpand to view the summary
Build stats
Test stats 🧪
Steps errorsExpand to view the steps failures
|
It's registered as a default filter and with that the TransactionIgnoreUrls setting is applied to all transactions.
Add TransactionIgnoreUrls doc
Used to restrict requests to certain URLs from being instrumented. | ||
|
||
This property should be set to a list containing one or more strings. | ||
When an incoming HTTP request is detected, its request path will be tested against each element in this list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bmorelli25 I think this part could be improved a lot. In the issue description I write about what part of the URL is matched, but I think this text does not make it clear.
Can you come up with something better? I'd like to have something that describes very well what part of the URL is exactly matched - I think most docs just call this part 'path`, but I'm not sure its meaning is generally known.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You know, I actually don't find this difficult to understand. With that being said, an example here certainly wouldn't hurt and would go a long way to making this feature easier to understand. What about adding what you have in the description to these docs?
Used to ...
This property should be set to a list containing one or more strings.
When an incoming HTTP request is detected, its request path will be tested against each element in this list.
For example, adding `/home/index` to this list would match and remove instrumentation from the following URLs:
[source,txt]
----
https://www.mycoolsite.com/home/index
http://localhost/home/index
http://whatever.com/home/index?value1=123
----
This option supports ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great; I also think adding an example helps. I added it. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs LGTM
Hi @gregkalapos , Is this feature working? I'm using
I have my Startup like this:
but I'm still getting transactions when am I doing something wrong? Thanks in advance |
@arivasvera, I don't think this commit made it into version |
Thank you for your response @bmorelli25 I hope this feature will release soon :) Best regards |
hello again, do you guys have an estimated date to release this feature? again, thanks in advance |
@bmorelli25 Has this been released yet? I don't see it anywhere on the releases page - https://github.com/elastic/apm-agent-dotnet/releases |
Yes, this was part of the This doc page has all the settings from the latest release. Regarding questions to release date: We don't publicly communicate specific release dates. Simply because we believe it'd cause more harm than it'd help people. So we'll never be able to answer questions around release date, sorry about that. |
Solves #688, implements elastic/apm#144
The
TransactionIgnoreUrls
config takes a list and matches each url path against it. If the given url path is in the list, then it'll be ignored - meaning no transaction will be captured.It checks the path part of the url. E.g. adding
/home/index
will match all of the followings:https://www.myCoolSite.com/home/index
http://localhost/home/index
http://whatever.com/home/index?value1=123
(so query string is ignored for matching)By default it's case insensitive.
ToDo: