-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat(prism-agent): Metrics for connection flow job #611
Conversation
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.
Nice job @shotexa. I left some comments...
...ervice/server/src/main/scala/io/iohk/atala/connect/controller/ConnectionControllerImpl.scala
Outdated
Show resolved
Hide resolved
...nt/service/server/src/main/scala/io/iohk/atala/agent/server/jobs/ConnectBackgroundJobs.scala
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@shotexa , please, do not add Probably, I need to explicitly add it into guidelines. |
@shotexa , please, remove I need to explicitly add it into guidelines. |
If it has to do with open sourcing, would not people still be able to see the description when it is open sourced? |
count <- connectionRepository | ||
.updateWithConnectionRequest(recordId, request, ProtocolState.ConnectionRequestPending, maxRetries) | ||
.mapError(RepositoryError.apply) | ||
.mapError(RepositoryError.apply) @@ CustomMetricsAspect.startRecordingTime( | ||
s"${record.id}_invitee_pending_to_req_sent" |
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.
Should this be a metrics which is named invitee_pending_to_req_sent
with a label of record.id
instead of many different metrics? It won't be possible to compare / sum by record.id if this is a full metric on it's own
# [1.10.0](prism-agent-v1.9.2...prism-agent-v1.10.0) (2023-08-16) ### Bug Fixes * **prism-agent:** fix OAS on empty DID resolution representation ([#616](#616)) ([216ff3a](216ff3a)) ### Features * **agent:** improve OAS spec and refactor DidCommHttpServer code ([#615](#615)) ([301fbab](301fbab)) * **prism-agent:** Metrics for connection flow job ([#611](#611)) ([695d661](695d661)) * update anoncreds demo after the new getJson methods ([#584](#584)) ([d8258ee](d8258ee)) ### Performance Improvements * support for credential and present-proof flows with thid ([#609](#609)) ([9cef8c0](9cef8c0))
…epo subject to the Developer Certificate of Origin (DCO), Version 1.1. 695d661 feat(prism-agent): Metrics for connection flow job (#611) f62d7f5 feat(prism-agent): add http metrics (#585) a936e86 chore: update to scala 3.3.0, remove unused imports. (#577) 703dccb refactor(prism-agent): Make prism-agent REST API consistent. (#411) 12dd9c2 Add ADR - Store private keys of Issuers inside prism-agent (#52) 7629dc7 Add common project settings to Iris build.sbt (#50) 3f381cd feat(infra): [ATL-1889] create local deployment config Signed-off-by: Shota Jolbordi <[email protected]>
…epo subject to the Developer Certificate of Origin (DCO), Version 1.1 515f92f fix(prism-agenet): Remove connection ID from metrics in connection flow (#635) 695d661 feat(prism-agent): Metrics for connection flow job (#611) f62d7f5 feat(prism-agent): add http metrics (#585) a936e86 chore: update to scala 3.3.0, remove unused imports. (#577) 703dccb refactor(prism-agent): Make prism-agent REST API consistent. (#411) 12dd9c2 Add ADR - Store private keys of Issuers inside prism-agent (#52) 7629dc7 Add common project settings to Iris build.sbt (#50) 3f381cd feat(infra): [ATL-1889] create local deployment config Signed-off-by: Shota Jolbordi <[email protected]>
…epo subject to the Developer Certificate of Origin (DCO), Version 1.1 515f92f fix(prism-agenet): Remove connection ID from metrics in connection flow (#635) 695d661 feat(prism-agent): Metrics for connection flow job (#611) f62d7f5 feat(prism-agent): add http metrics (#585) a936e86 chore: update to scala 3.3.0, remove unused imports. (#577) 703dccb refactor(prism-agent): Make prism-agent REST API consistent. (#411) 12dd9c2 Add ADR - Store private keys of Issuers inside prism-agent (#52) 7629dc7 Add common project settings to Iris build.sbt (#50) 3f381cd feat(infra): [ATL-1889] create local deployment config Signed-off-by: Shota Jolbordi <[email protected]>
Overview
Fixes ATL-4252
Adds metrics for connection operation, and utility functions to measure time between asynchronous operations vai ZIO aspects.
List of metrics added:
connection_flow_invitee_connection_request_msg_failed_counter
connection_flow_invitee_connection_request_msg_success_counter
connection_flow_inviter_connection_response_msg_failed_counter
connection_flow_inviter_connection_response_msg_success_counter
connection_flow_invitee_process_connection_record_success_counter
connection_flow_invitee_process_connection_record_failed_counter
connection_flow_invitee_process_connection_record_total_counter
connection_flow_inviter_process_connection_record_success_counter
connection_flow_inviter_process_connection_record_failed_counter
connection_flow_inviter_process_connection_record_total_counter
connection_flow_invitee_send_connection_request_ms_gauge
connection_flow_invitee_pending_to_req_sent_ms_gauge
connection_flow_invitee_process_connection_record_ms_gauge
connection_flow_inviter_send_connection_response_ms_gauge
connection_flow_inviter_pending_to_res_sent_ms_gauge
connection_flow_inviter_process_connection_record_ms_gauge
Checklist
My PR contains...
My changes...
Documentation
Tests