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
Copy file name to clipboardExpand all lines: libs/core/README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,3 +60,27 @@ class MyDirective {
60
60
- Node Console: `withNodeConsoleTransport(...)`
61
61
- Remote: `withRemoteTransport(...)`
62
62
- AWS CloudWatch: see `withCloudwatchTransport(...)`
63
+
64
+
### LogRequestInfo Integration
65
+
You can enrich your log requests for `Remote` and `CloudWatch` Transports with custom information like user/session/device metadata using the `withRequestInfoFn` feature.
66
+
67
+
#### Usage Example
68
+
Use the feature `withRequestInfoFn` function to provide a factory for a `LogRequestInfoFn`.
69
+
The `LogRequestInfoFn` is a function itself that is called prior every log request. Its return value needs to be an object with the information to be included.
0 commit comments