Skip to content

Commit 1866b12

Browse files
author
Bob Bui
committed
refactor: remove duplicated documentation and minor code formatting
1 parent c76fd57 commit 1866b12

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -228,17 +228,6 @@ correlation_id_without_request_obj = json_logging.get_correlation_id()
228228
In request context, if one is not present, a new one might be generated depends on CREATE_CORRELATION_ID_IF_NOT_EXISTS
229229
setting value.
230230

231-
## 2.3 Get current correlation-id
232-
233-
Current request correlation-id can be retrieved and pass to downstream services call as follow:
234-
235-
```python
236-
# this will be faster
237-
correlation_id = json_logging.get_correlation_id(request=request)
238-
# this will be slower, but will work in context where you couldn't get a reference of request object
239-
correlation_id_without_request_obj = json_logging.get_correlation_id()
240-
# use correlation id for upstream service calls here
241-
```
242231

243232
## 2.4 Log extra properties
244233

0 commit comments

Comments
 (0)