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

Filter urls #2

Open
dgastudio opened this issue Mar 4, 2022 · 2 comments
Open

Filter urls #2

dgastudio opened this issue Mar 4, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@dgastudio
Copy link

Hello
my backend is using multiple url workspaces
api/v1/*
api/v2/*
system/*
...etc

i need to apply trebble to only some of them. It's possible to provide a wildcard mask to filter processed endpoints?

@cindreta
Copy link
Member

cindreta commented Mar 4, 2022

Hey man, thank you for posting - i think it should be possible. I'm going to CC our SDK dev @zoka123 and we'll take a peek 😀

@zoka123 zoka123 added the enhancement New feature or request label Mar 4, 2022
@zoka123
Copy link
Collaborator

zoka123 commented Mar 4, 2022

This would be a nice enhancement. We could implement some service that would allow you to make decisions whether the Treblle logic should kick in or not, based on whatever logic you want it to be (route used, request context, etc), not only URL patterns.

Until the feature is ready, you could achieve the same by selectively instantiating the Treblle instance depending on conditions you care about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants