Skip to content

Conversation

josecelano
Copy link
Member

@josecelano josecelano commented Feb 19, 2024

Add logs to Health Check API. Example:

2024-02-19T11:30:21.061293933+00:00 [HEALTH CHECK API][INFO] request; method=GET uri=/health_check request_id=78933bbf-c4cf-4897-b972-4c0fd252159a
2024-02-19T11:30:21.070329733+00:00 [HEALTH CHECK API][INFO] response; latency=9 status=200 OK request_id=78933bbf-c4cf-4897-b972-4c0fd252159a

@josecelano josecelano force-pushed the 700-health-check-api-log-request-and-responses branch from 5a3d4cf to 20f8d15 Compare February 19, 2024 11:35
@josecelano josecelano added Enhancement / Feature Request Something New - Developer - Torrust Improvement Experience - Admin - Enjoyable to Install and Setup our Software labels Feb 19, 2024
@josecelano josecelano linked an issue Feb 19, 2024 that may be closed by this pull request
@josecelano josecelano added this to the v3.0.0 milestone Feb 19, 2024
Copy link

codecov bot commented Feb 19, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (db71f2a) 73.16% compared to head (e0836bd) 73.24%.

Files Patch % Lines
src/bootstrap/jobs/health_check_api.rs 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #701      +/-   ##
===========================================
+ Coverage    73.16%   73.24%   +0.07%     
===========================================
  Files          143      143              
  Lines         9190     9216      +26     
===========================================
+ Hits          6724     6750      +26     
  Misses        2466     2466              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

``````
2024-02-19T11:30:21.061293933+00:00 [HEALTH CHECK API][INFO] request; method=GET uri=/health_check request_id=78933bbf-c4cf-4897-b972-4c0fd252159a
2024-02-19T11:30:21.070329733+00:00 [HEALTH CHECK API][INFO] response; latency=9 status=200 OK request_id=78933bbf-c4cf-4897-b972-4c0fd252159a
```
@josecelano josecelano force-pushed the 700-health-check-api-log-request-and-responses branch from 20f8d15 to e0836bd Compare February 19, 2024 12:20
@josecelano
Copy link
Member Author

ACK e0836bd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

- Admin - Enjoyable to Install and Setup our Software - Developer - Torrust Improvement Experience Enhancement / Feature Request Something New

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Health Check API: log request and responses

1 participant