Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Metric Error Codes Recording + Error Code Prefixing (dapr#8256)
* further fine tuning Signed-off-by: Cassandra Coyle <cassie@diagrid.io> Signed-off-by: Jake Engelberg <jake@diagrid.io> * try fixing borked e2e Signed-off-by: Cassandra Coyle <cassie@diagrid.io> Signed-off-by: Jake Engelberg <jake@diagrid.io> * try fixing standalone validation Signed-off-by: Cassandra Coyle <cassie@diagrid.io> Signed-off-by: Jake Engelberg <jake@diagrid.io> * install numpy too Signed-off-by: Cassandra Coyle <cassie@diagrid.io> Signed-off-by: Jake Engelberg <jake@diagrid.io> * update pip & install pkgs globally instead of venv Signed-off-by: Cassandra Coyle <cassie@diagrid.io> Signed-off-by: Jake Engelberg <jake@diagrid.io> * install requests Signed-off-by: Cassandra Coyle <cassie@diagrid.io> Signed-off-by: Jake Engelberg <jake@diagrid.io> * // -> # for commented line Signed-off-by: Cassandra Coyle <cassie@diagrid.io> Signed-off-by: Jake Engelberg <jake@diagrid.io> * match only installed version of powershell Signed-off-by: Cassandra Coyle <cassie@diagrid.io> Signed-off-by: Jake Engelberg <jake@diagrid.io> * wip: errorcode const consolidation Signed-off-by: Jake Engelberg <jake@diagrid.io> * wip: error code monitoring/metric recording Signed-off-by: Jake Engelberg <jake@diagrid.io> * style: error_code -> errorcode Signed-off-by: Jake Engelberg <jake@diagrid.io> * fix: error changes from refactor Signed-off-by: Jake Engelberg <jake@diagrid.io> * remove 2 unused error codes Signed-off-by: Jake Engelberg <jake@diagrid.io> * Revert "wip: error code monitoring/metric recording" This reverts commit 53a02b5. Done so to implement in a separate PR. Signed-off-by: Jake Engelberg <jake@diagrid.io> * Revert "Revert "wip: error code monitoring/metric recording"" This reverts commit 44c31be. Signed-off-by: Jake Engelberg <jake@diagrid.io> * use RecordAndGet() to record error code metric only whenever ApiError var will be logged Signed-off-by: Jake Engelberg <jake@diagrid.io> * undo invalid error code recording Signed-off-by: Jake Engelberg <jake@diagrid.io> * apply cohesive prefixes to error codes Signed-off-by: Jake Engelberg <jake@diagrid.io> * correctly apply metric recording to inline string error definitions, fix unit tests Signed-off-by: Jake Engelberg <jake@diagrid.io> * add explicit "type" field for error code metrics Signed-off-by: Jake Engelberg <jake@diagrid.io> * linting improvements Signed-off-by: Jake Engelberg <jake@diagrid.io> * errorcode recording unit test, fix: register type field on init Signed-off-by: Jake Engelberg <jake@diagrid.io> * add category to error codes for O(1) operation on recording Signed-off-by: Jake Engelberg <jake@diagrid.io> * use error code vars in tests Signed-off-by: Jake Engelberg <jake@diagrid.io> * fumpt Signed-off-by: Jake Engelberg <jake@diagrid.io> * convert last test strings, fix some integration tests Signed-off-by: Jake Engelberg <jake@diagrid.io> * fix errorcodes compile error Signed-off-by: Jake Engelberg <jake@diagrid.io> * golangci-lint fixes Signed-off-by: Jake Engelberg <jake@diagrid.io> * lint fix Signed-off-by: Jake Engelberg <jake@diagrid.io> * remove debug binary Signed-off-by: Jake Engelberg <jake@diagrid.io> * Revert "lint fix" This reverts commit 392080a. Revert "golangci-lint fixes" This reverts commit d6c6066. Revert "fix errorcodes compile error" This reverts commit 9739534. Revert "convert last test strings, fix some integration tests" This reverts commit ae39228. Revert "fumpt" This reverts commit 7f04bb3. Revert "use error code vars in tests" This reverts commit c6ae704. remove addtl err code var in test Signed-off-by: Jake Engelberg <jake@diagrid.io> * revise "key" field in metric to "category" Signed-off-by: Jake Engelberg <jake@diagrid.io> * restore original error codes + bug fixes Signed-off-by: Jake Engelberg <jake@diagrid.io> * fix configuration test Signed-off-by: Jake Engelberg <jake@diagrid.io> fix copyright headers Signed-off-by: Jake Engelberg <jake@diagrid.io> utilize todo context w/o struct member Signed-off-by: Jake Engelberg <jake@diagrid.io> nelson style improvements Signed-off-by: Jake Engelberg <jake@diagrid.io> * fix: remove doubled calls of RecordAndGet() Signed-off-by: Jake Engelberg <jake@diagrid.io> * reduce repitition in pubsub.go by recording at parent build() Signed-off-by: Jake Engelberg <jake@diagrid.io> * add specific recorder logic for Jobs API composite err codes Signed-off-by: Jake Engelberg <jake@diagrid.io> * refactor metric RecordX() funcs to reduce repetition Signed-off-by: Jake Engelberg <jake@diagrid.io> * lint fix Signed-off-by: Jake Engelberg <jake@diagrid.io> * metric naming: count -> total Signed-off-by: Jake Engelberg <jake@diagrid.io> * fix: style/naming Signed-off-by: Jake Engelberg <jake@diagrid.io> * fix: correct crypto metric recording w/ wrapper funcs Signed-off-by: Jake Engelberg <jake@diagrid.io> * fix: remove extra metric recordings Signed-off-by: Jake Engelberg <jake@diagrid.io> * integtest: error code metrics Signed-off-by: Jake Engelberg <jake@diagrid.io> * fix duplicated/missing http recordings Signed-off-by: Jake Engelberg <jake@diagrid.io> * clarify/further consolidate recording funcs Signed-off-by: Jake Engelberg <jake@diagrid.io> * further reduction of recording, requires dapr/kit PR Signed-off-by: Jake Engelberg <jake@diagrid.io> * Add metric spec plural copy, remove some comments Signed-off-by: Jake Engelberg <jake@diagrid.io> * nit improvements Signed-off-by: Jake Engelberg <jake@diagrid.io> * provide newest dapr/kit to properly record error code Signed-off-by: Jake Engelberg <jake@diagrid.io> * remove dapr/kit replace, add log for malformed error code Signed-off-by: Jake Engelberg <jake@diagrid.io> * log: error -> warn Signed-off-by: Jake Engelberg <jake@diagrid.io> --------- Signed-off-by: Cassandra Coyle <cassie@diagrid.io> Signed-off-by: Jake Engelberg <jake@diagrid.io> Co-authored-by: Cassandra Coyle <cassie@diagrid.io> Co-authored-by: Elena Kolevska <elena-kolevska@users.noreply.github.com> Co-authored-by: Yaron Schneider <schneider.yaron@live.com> Co-authored-by: Artur Souza <asouza.pro@gmail.com>
- Loading branch information