Skip to content
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

How do I ignore urls? #395

Closed
mikkeschiren opened this issue Apr 7, 2021 · 2 comments
Closed

How do I ignore urls? #395

mikkeschiren opened this issue Apr 7, 2021 · 2 comments
Labels
agent-php from a real user This issue is from a real user (i.e., not an issue we found during internal testing)

Comments

@mikkeschiren
Copy link

I can see that other agents have an ignoreurls settings, does that exist yet for this agent? I look through the code but couldn't find that.

@SergeyKleyman SergeyKleyman added the from a real user This issue is from a real user (i.e., not an issue we found during internal testing) label Apr 12, 2021
@SergeyKleyman
Copy link
Contributor

Hi @mikkeschiren. Thank you for trying the agent and providing feedback.
You are correct - at the moment the agent doesn't support this configuration setting yet. We do have an issue (#82) in the backlog to add it. I'll try to see if we can push it closer to the top of the backlog.

In the meantime if you can change the application's source code, a possible workaround is to add the following code to your application to discard transactions based on any condition (including matching URL path pattern):

if (/* request URL matches IGNORE_URLS pattern */) {
    ElasticApm::getCurrentTransaction()->discard();
}

Of course, you or any other community member are welcome to contribute support for this or any other yet-to-be-implemented feature.

@SergeyKleyman
Copy link
Contributor

I'm going to close this issue. Please watch Configuration option: TRANSACTION_IGNORE_URLS #82 if you would like to get notified when the requested feature is implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-php from a real user This issue is from a real user (i.e., not an issue we found during internal testing)
Projects
None yet
Development

No branches or pull requests

2 participants