-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
Definition of done:
- Add
config.log_levelto environment configurations- default to
DEBUGin development & test - default to
INFOin production
- default to
- Ensure latest version of Data Services API gem is being used:
1.5.4 - Ensure latest version of JSON Rails Logger gem is being used:
2.0.5 - Ensure the information passed to the logger include:
- timestamp
- Date in ISO8061 format
YYYY-MM-DDThh:mm:ss.msZ
- Date in ISO8061 format
- request_id
X-Request-IDof original incoming request as generated by the reverse proxy
- method
- HTTP method
DELETE|GET|PATCH|POST|PUT| etc
- HTTP method
- path
- HTTP request path
- level
- Severity of event
DEBUG|INFO|WARN|ERROR|FATAL
- Severity of event
- message
- Human readable description of logged event
- Could require, or benefit from, additional values presented like
time takenand/orreturned rows - Additional values should be included as structured fields if used
- query_params
- HTTP request parameters as a stringified JSON object (OPTIONAL)
- body
- HTTP request or response body (OPTIONAL)
- status
- HTTP response status code
2xx|3xx|4xx|5xx
- HTTP response status code
- request_time
- Time taken to process the event
- logged as a float/decimal value string:
0.003 - displayed in message:
time taken 3ms
- logged as a float/decimal value string:
- Time taken to process the event
- returned_rows
- The number of rows / records returned by a request (OPTIONAL)
- request_status
- The status of a request
received|processing|complete
- The status of a request
- timestamp
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels