Skip to content

Conversation

@horoc
Copy link
Member

@horoc horoc commented Nov 28, 2022

Fixes #2196

Motivation

#2196

Modifications

#2196

Documentation

None

@horoc
Copy link
Member Author

horoc commented Nov 28, 2022

hi @walterlife, could you help to review this pr?

@walterlife walterlife self-requested a review December 1, 2022 10:21
@codecov
Copy link

codecov bot commented Dec 2, 2022

Codecov Report

Merging #2303 (ad5ff79) into master (6bdd7a0) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #2303      +/-   ##
============================================
- Coverage     11.78%   11.77%   -0.02%     
+ Complexity      903      901       -2     
============================================
  Files           473      469       -4     
  Lines         27856    27783      -73     
  Branches       3000     3000              
============================================
- Hits           3284     3272      -12     
+ Misses        24276    24216      -60     
+ Partials        296      295       -1     
Impacted Files Coverage Δ
...tandalone/broker/task/HistoryMessageClearTask.java 29.41% <0.00%> (-17.65%) ⬇️
...mesh/connector/standalone/broker/MessageQueue.java 32.46% <0.00%> (-7.80%) ⬇️
...sh/connector/knative/consumer/DefaultConsumer.java 58.82% <0.00%> (-3.68%) ⬇️
.../apache/eventmesh/runtime/util/RemotingHelper.java 55.17% <0.00%> (-1.50%) ⬇️
.../eventmesh/connector/rocketmq/utils/BeanUtils.java 78.68% <0.00%> (-0.35%) ⬇️
...g/apache/eventmesh/runtime/util/EventMeshUtil.java 74.26% <0.00%> (ø)
...tmesh/client/grpc/producer/CloudEventProducer.java 64.91% <0.00%> (ø)
...ntime/core/protocol/grpc/service/ServiceUtils.java 0.00% <0.00%> (ø)
...ime/core/protocol/grpc/push/StreamPushRequest.java 0.00% <0.00%> (ø)
...me/core/protocol/grpc/push/WebhookPushRequest.java 0.00% <0.00%> (ø)
... and 27 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

MetricsSwitchReject = "reject"
MetricsSwitchPass = "pass"

MetricsStartRequest = "start_request"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to initialize the metric collector first?
@horoc

Copy link
Member Author

Choose a reason for hiding this comment

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

updated.

case gauge:
return p.histograms[name]
default:
panic("prometheus metrics get collector error, illegal collector type")
Copy link
Contributor

Choose a reason for hiding this comment

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

try to use error return instead of panic
@horoc

Copy link
Member Author

Choose a reason for hiding this comment

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

updated.

Copy link
Contributor

@walterlife walterlife left a comment

Choose a reason for hiding this comment

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

LGTM

@walterlife walterlife merged commit 89b1b3a into apache:master Dec 7, 2022
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.

[Enhancement] Workflow Feature Implementation: Workflow execution metrics

2 participants