-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add metrics observation #56
Conversation
Signed-off-by: Florent MILLOT <[email protected]>
Signed-off-by: Florent MILLOT <[email protected]>
Signed-off-by: Florent MILLOT <[email protected]>
Signed-off-by: Florent MILLOT <[email protected]>
Signed-off-by: Florent MILLOT <[email protected]>
Signed-off-by: Florent MILLOT <[email protected]>
Signed-off-by: Florent MILLOT <[email protected]>
.../java/org/gridsuite/sensitivityanalysis/server/service/SensitivityAnalysisWorkerService.java
Outdated
Show resolved
Hide resolved
public <E extends Throwable> void observe(String name, SensitivityAnalysisRunContext runContext, Observation.CheckedRunnable<E> callable) throws E { | ||
createObservation(name, runContext).observeChecked(callable); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public <E extends Throwable> void observe(String name, SensitivityAnalysisRunContext runContext, Observation.CheckedRunnable<E> callable) throws E { | |
createObservation(name, runContext).observeChecked(callable); | |
public <E extends Throwable> void observe(String name, SensitivityAnalysisRunContext runContext, Observation.CheckedRunnable<E> runnable) throws E { | |
createObservation(name, runContext).observeChecked(runnable); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just copy paste from other MS https://github.com/gridsuite/security-analysis-server/blob/6bab1554756090fef76bf5ec82dd3d6600fb4fd5/src/main/java/org/gridsuite/securityanalysis/server/service/SecurityAnalysisObserver.java#L44-L46
I didn't notice, but indeed it should be changed everywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Florent MILLOT <[email protected]>
Signed-off-by: Florent MILLOT <[email protected]>
Counter.builder(COMPUTATION_COUNTER_NAME) | ||
.tag(PROVIDER_TAG_NAME, provider) | ||
.tag(TYPE_TAG_NAME, COMPUTATION_TYPE) | ||
.tag(STATUS_TAG_NAME, getStatusFromResult(result)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean I should not use incrementCount as in security server ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, I always return OK
Signed-off-by: Florent MILLOT <[email protected]>
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
No description provided.