You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Emit JSON logs, see here for what kind of log will be emitted.[\[0\]](#0-full-logging-format-references)
22
22
4. Support **correlation-id**[\[1\]](#1-what-is-correlation-idrequest-id)
23
23
5. Support request instrumentation. Built in support for [Flask](http://flask.pocoo.org/) & [Sanic](http://flask.pocoo.org/). Extensible to support others.
24
24
6. Support adding extra properties to JSON log object.
@@ -169,16 +169,63 @@ pip3 install .
169
169
```
170
170
# 7. References
171
171
## [0] Full logging format references
172
+
2 types of logging statement will be emmited by this library:
type | Type of logging. "logs" or "request" | string |
228
+
component_id | Uniquely identifies the software component that has processed the current request | string | 9e6f3ecf-def0-4baf-8fac-9339e61d5645
182
229
component_name | A human-friendly name representing the software component | string | my-fancy-component
183
230
component_instance | Instance's index of horizontally scaled service | string | 0
184
231
@@ -207,6 +254,7 @@ remote_host | host name of the consumer (might be a proxy, might be the actual
207
254
remote_port | Which TCP port is used by the consumer to establish a connection to the remote producer. | string | 1234
208
255
remote_user | The username associated with the request | string | user_name
209
256
request_size_b | The size in bytes of the requesting entity or "body" (e.g., in case of POST requests). | long | 1234
257
+
response_size_b | The size in bytes of the response entity | long | 1234
210
258
response_status | The status code of the response. | long | 200
211
259
response_content_type | The MIME type associated with the entity of the response if available/specified | long | application/json
212
260
referer | For HTTP requests, identifies the address of the webpage (i.e. the URI or IRI) that linked to the resource being requested. | string | /index.html
0 commit comments