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

Support URL exclusion using UrlCleaner in Spring WebFlux adapter #1049

Merged
merged 5 commits into from
Oct 8, 2019

Conversation

zhaoyuguang
Copy link
Collaborator

@zhaoyuguang zhaoyuguang commented Sep 18, 2019

Describe what this PR does / why we need it

Does this pull request fix one issue?

Resolves #1020

Describe how you did it

Describe how to verify it

Special notes for reviews

@sczyh30 sczyh30 added the to-review To review label Sep 18, 2019
@codecov-io
Copy link

codecov-io commented Sep 18, 2019

Codecov Report

Merging #1049 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1049      +/-   ##
============================================
- Coverage     42.64%   42.61%   -0.03%     
  Complexity     1472     1472              
============================================
  Files           317      317              
  Lines          9286     9290       +4     
  Branches       1267     1269       +2     
============================================
- Hits           3960     3959       -1     
- Misses         4833     4836       +3     
- Partials        493      495       +2
Impacted Files Coverage Δ Complexity Δ
.../adapter/spring/webflux/SentinelWebFluxFilter.java 100% <100%> (ø) 5 <0> (ø) ⬇️
...tinel/slots/block/flow/param/ParamFlowChecker.java 52.7% <0%> (-2.71%) 28% <0%> (-1%)
...main/java/com/alibaba/csp/sentinel/AsyncEntry.java 94.28% <0%> (-2.39%) 11% <0%> (ø)
...inel/datasource/zookeeper/ZookeeperDataSource.java 66.33% <0%> (-1%) 15% <0%> (-1%)
...ava/com/alibaba/csp/sentinel/node/ClusterNode.java 100% <0%> (+4.76%) 8% <0%> (+1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4d9a5ef...e37c835. Read the comment docs.

@@ -55,7 +55,7 @@ For REST APIs, you have to clean the URL resource (e.g. `/foo/1` and `/foo/2` ->
the amount of context and resources will exceed the threshold.

If you need to exclude some URLs (that should not be recorded as Sentinel resources), you could also
leverage the `UrlCleaner` interface. You may unify the unwanted URLs to the empty string `""`,
leverage the `UrlCleaner` interface. You may unify the unwanted URLs to the empty string `""` or null,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is for Spring WebFlux adapter only, so it might be better to make this change in other PRs.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I will try to change this in another PR.

Copy link
Member

@sczyh30 sczyh30 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sczyh30 sczyh30 merged commit cdd8d6f into alibaba:master Oct 8, 2019
@sczyh30
Copy link
Member

sczyh30 commented Oct 8, 2019

Thanks for contributing!

@sczyh30 sczyh30 removed the to-review To review label Oct 8, 2019
@sczyh30 sczyh30 added this to the 1.7.0 milestone Oct 8, 2019
@sczyh30 sczyh30 added the kind/enhancement Category issues or prs related to enhancement. label Oct 8, 2019
hughpearse pushed a commit to hughpearse/Sentinel that referenced this pull request Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Category issues or prs related to enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support URL exclusion using UrlCleaner in Spring WebFlux adapter
3 participants