-
Notifications
You must be signed in to change notification settings - Fork 62
Add support for requestId feature to log unique requests #1620
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
base: mvp_demo
Are you sure you want to change the base?
Changes from 1 commit
9d04851
715cde5
6806fe9
5773272
cc7ac2d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,6 +58,7 @@ public class CreateExperimentAPIObject extends BaseSO implements ExperimentTypeA | |
| private AnalyzerConstants.ExperimentStatus status; | ||
| private String experiment_id; // this id is UUID and getting set at createExperiment API | ||
| private ValidationOutputData validationData; // This object indicates if this API object is valid or invalid | ||
| private String request_id; // this gets logged to uniquely identify each request | ||
|
|
||
| public CreateExperimentAPIObject() { | ||
| } | ||
|
|
@@ -170,6 +171,10 @@ public void setExperimentType(AnalyzerConstants.ExperimentType experimentType) { | |
| this.experimentType = experimentType; | ||
| } | ||
|
|
||
| public String getRequest_id() { | ||
|
||
| return request_id; | ||
| } | ||
|
|
||
| @Override | ||
| public String toString() { | ||
| return "CreateExperimentAPIObject{" + | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,6 +54,7 @@ public class UpdateResultsAPIObject extends BaseSO { | |
| private List<KruizeResponse> errors; | ||
|
|
||
| private KruizeObject kruizeObject; | ||
| private String request_id; // this gets logged to uniquely identify each request | ||
|
|
||
| public Timestamp getStartTimestamp() { | ||
| return startTimestamp; | ||
|
|
@@ -109,6 +110,10 @@ public interface EvaluateRemainingConstraints { | |
| public interface EvaluatePerformanceProfileConstraints { | ||
| } | ||
|
|
||
| public String getRequest_id() { | ||
|
||
| return request_id; | ||
| } | ||
|
|
||
| @GroupSequence({UpdateResultsAPIObject.class, InitialValidation.class, EvaluatePerformanceProfileConstraints.class, EvaluateRemainingConstraints.class}) | ||
| public interface FullValidationSequence { | ||
| } | ||
|
|
||
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.
If
requestIdscope is only inif-blockcan we directly check theobject.getRequest_idand assign torequestIdinside theif-blockfor a better scoping of the variable?something like 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.
Done