Skip to content

Commit 71960b3

Browse files
committed
Update documentation
1 parent cedf64e commit 71960b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ In the end, all DID finders for ServiceX will run under Kubernetes. ServiceX com
110110
```python
111111
async def my_callback(did_name: str, info: Dict[str, Any]):
112112
info['log'].info(f'Looking up dataset {did_name}.',
113-
extras={'RequestId': info['request-id']})
113+
extras={'requestId': info['request-id']})
114114
for i in range(0, 10):
115115
yield {
116116
'file_path': f"root://atlas-experiment.cern.ch/dataset1/file{i}.root",
@@ -119,3 +119,5 @@ In the end, all DID finders for ServiceX will run under Kubernetes. ServiceX com
119119
'file_events': 0,
120120
}
121121
```
122+
123+
Note the parameter `request-id`: this marks the log messages with the request id that triggered this DID request. This will enable the system to track all log messages across all containers connected with this particular request id - making debugging a lot easier.

0 commit comments

Comments
 (0)