Skip to content

Conversation

@novoland
Copy link
Contributor

Describe what this PR does / why we need it

Does this pull request fix one issue?

Fixes #133

Describe how you did it

Describe how to verify it

Special notes for reviews

@codecov-io
Copy link

codecov-io commented Apr 17, 2020

Codecov Report

Merging #134 into master will decrease coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #134      +/-   ##
==========================================
- Coverage   43.28%   43.24%   -0.05%     
==========================================
  Files          67       67              
  Lines        2837     2835       -2     
==========================================
- Hits         1228     1226       -2     
  Misses       1471     1471              
  Partials      138      138              
Impacted Files Coverage Δ
core/stat/base/sliding_window_metric.go 22.87% <ø> (-1.00%) ⬇️

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 76070e1...11c57b0. Read the comment docs.

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 8a08ee3 into alibaba:master Apr 20, 2020
@sczyh30
Copy link
Member

sczyh30 commented Apr 20, 2020

Thanks!

sczyh30 pushed a commit that referenced this pull request Apr 21, 2020
* make EntryOptions support storing custom data before Sentinel.Entry()
* make data of SentinelInput / SentinelOutput public & rename to attachment
* remove unnecessary check for slidingWindowMetric.intervalInMs
* Polish code of buildFlowMap in flow/rule_manager.go (#131)
* Remove unnecessary division checking for interval of SlidingWindowMetric (#134)

Co-authored-by: sdttttt <[email protected]>
ansiz pushed a commit to ansiz/sentinel-golang that referenced this pull request Dec 22, 2020
Support carrying additional attachments with sentinel.Entry(options) (alibaba#124)

* make EntryOptions support carrying attachment data
* make the `data` field of SentinelInput / SentinelOutput public and rename to `Attachments`

Add MetricEventMonitorBlock

Signed-off-by: Eric Zhao <[email protected]>

Polish MetricItem with monitor-block metric event (alibaba#127)

Sync special/metric-event branch with master (alibaba#136)

* make EntryOptions support storing custom data before Sentinel.Entry()
* make data of SentinelInput / SentinelOutput public & rename to attachment
* remove unnecessary check for slidingWindowMetric.intervalInMs
* Polish code of buildFlowMap in flow/rule_manager.go (alibaba#131)
* Remove unnecessary division checking for interval of SlidingWindowMetric (alibaba#134)

Co-authored-by: sdttttt <[email protected]>

Add max concurrency statistic data (alibaba#138)

Add support for getting max concurrency of the latest second (alibaba#140)

feat: add SecondMaxConcurrency field to MetricItem (alibaba#145)

feat: allow to disable metric log flush in runtime (alibaba#147)
sczyh30 pushed a commit that referenced this pull request Dec 22, 2020
Support carrying additional attachments with sentinel.Entry(options) (#124)

* make EntryOptions support carrying attachment data
* make the `data` field of SentinelInput / SentinelOutput public and rename to `Attachments`

Add MetricEventMonitorBlock

Signed-off-by: Eric Zhao <[email protected]>

Polish MetricItem with monitor-block metric event (#127)

Sync special/metric-event branch with master (#136)

* make EntryOptions support storing custom data before Sentinel.Entry()
* make data of SentinelInput / SentinelOutput public & rename to attachment
* remove unnecessary check for slidingWindowMetric.intervalInMs
* Polish code of buildFlowMap in flow/rule_manager.go (#131)
* Remove unnecessary division checking for interval of SlidingWindowMetric (#134)

Co-authored-by: sdttttt <[email protected]>

Add max concurrency statistic data (#138)

Add support for getting max concurrency of the latest second (#140)

feat: add SecondMaxConcurrency field to MetricItem (#145)

feat: allow to disable metric log flush in runtime (#147)
sczyh30 pushed a commit that referenced this pull request Dec 22, 2020
* sycn special branch commits

Support carrying additional attachments with sentinel.Entry(options) (#124)

* make EntryOptions support carrying attachment data
* make the `data` field of SentinelInput / SentinelOutput public and rename to `Attachments`

Add MetricEventMonitorBlock

Signed-off-by: Eric Zhao <[email protected]>

Polish MetricItem with monitor-block metric event (#127)

Sync special/metric-event branch with master (#136)

* make EntryOptions support storing custom data before Sentinel.Entry()
* make data of SentinelInput / SentinelOutput public & rename to attachment
* remove unnecessary check for slidingWindowMetric.intervalInMs
* Polish code of buildFlowMap in flow/rule_manager.go (#131)
* Remove unnecessary division checking for interval of SlidingWindowMetric (#134)

Co-authored-by: sdttttt <[email protected]>

Add max concurrency statistic data (#138)

Add support for getting max concurrency of the latest second (#140)

feat: add SecondMaxConcurrency field to MetricItem (#145)

feat: allow to disable metric log flush in runtime (#147)

* fix: fix broken test code

* hotspot_rule_add_paramKey

* concurrent processing(error group) for ExtractArgs Iteration

* refmt

* goimports

Co-authored-by: Liu Jing <[email protected]>
Co-authored-by: cafra <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]unnecessary check for slidingWindowMetric.intervalInMs

3 participants