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
2. Auto extract **correlation-id** for distributed tracing [\[1\]](#1-what-is-correlation-idrequest-id)
23
23
3. Lightweight, no dependencies, minimal configuration needed (1 LoC to get it working)
24
-
4.Fully compatible with Python **logging** module. Support both Python 2.7.x and 3.x
24
+
4.Seamlessly integrate with Python native**logging** module. Support both Python 2.7.x and 3.x
25
25
5. Support HTTP request instrumentation. Built in support for [Flask](https://github.com/pallets/flask/), [Sanic](https://github.com/channelcat/sanic), [Quart](https://gitlab.com/pgjones/quart), [Connexion](https://github.com/zalando/connexion). Extensible to support other web frameworks. PR welcome :smiley: .
26
-
6.Support inject arbitrary extra properties to JSON log message.
26
+
6.Highly customizable: support inject arbitrary extra properties to JSON log message, override logging formatter, etc.
# use correlation id for downstream service calls here
156
164
```
157
165
@@ -178,7 +186,7 @@ logging library can be configured by setting the value in json_logging, all conf
178
186
179
187
Name | Description | Default value
180
188
--- | --- | ---
181
-
ENABLE_JSON_LOGGING | Whether to enable JSON logging mode.Can be set as an environment variable, enable when set to to either one in following list (case-insensitive) **['true', '1', 'y', 'yes']** , this have no effect on request logger | false
189
+
ENABLE_JSON_LOGGING | **DEPRECATED**Whether to enable JSON logging mode.Can be set as an environment variable, enable when set to to either one in following list (case-insensitive) **['true', '1', 'y', 'yes']** , this have no effect on request logger | false
182
190
ENABLE_JSON_LOGGING_DEBUG | Whether to enable debug logging for this library for development purpose. | true
183
191
CORRELATION_ID_HEADERS | List of HTTP headers that will be used to look for correlation-id value. HTTP headers will be searched one by one according to list order| ['X-Correlation-ID','X-Request-ID']
184
192
EMPTY_VALUE | Default value when a logging record property is None | '-'
@@ -198,7 +206,7 @@ To add support for a new web framework, you need to extend following classes in
198
206
199
207
Class | Description | Mandatory
200
208
--- | --- | ---
201
-
RequestAdapter | Helper class help to extract logging-relevant information from HTTP request object | no
209
+
RequestAdapter | Helper class help to extract logging-relevant information from HTTP request object | yes
202
210
ResponseAdapter | Helper class help to extract logging-relevant information from HTTP response object | yes
203
211
FrameworkConfigurator | Class to perform logging configuration for given framework as needed | no
204
212
AppRequestInstrumentationConfigurator | Class to perform request instrumentation logging configuration | no
0 commit comments