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: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ into the [_Moesif Portal_](https://www.moesif.com/), click on the top right menu
62
62
## Optional: Capturing outgoing API calls
63
63
If you want to capture all outgoing API calls from your Python Lambda function to third parties like
64
64
Stripe or to your own dependencies, call `start_capture_outgoing()` to start capturing. This mechanism works by
65
-
patching the [Requests](http://docs.python-requests.org/en/master/)
65
+
patching the [Requests](https://requests.readthedocs.io/en/master/)
66
66
67
67
```python
68
68
from moesif_aws_lambda.middleware import*
@@ -191,26 +191,26 @@ Type: `Boolean`
191
191
192
192
## Options for logging outgoing calls
193
193
194
-
The options below are applied to outgoing API calls. The request and response objects passed in are [Requests](http://docs.python-requests.org/en/master/api/) request and [Response](https://golang.org/src/net/http/response.go) response objects.
194
+
The options below are applied to outgoing API calls. The request and response objects passed in are [Requests](https://requests.readthedocs.io/en/master/user/advanced/#request-and-response-objects) request and [Response](https://requests.readthedocs.io/en/master/user/advanced/#request-and-response-objects) response objects.
195
195
196
196
### __`SKIP_OUTGOING`__
197
-
(optional) _(req, res) => boolean_, a function that takes a [Requests](http://docs.python-requests.org/en/master/api/) request and response,
197
+
(optional) _(req, res) => boolean_, a function that takes a [Requests](https://requests.readthedocs.io/en/master/) request and response,
198
198
and returns true if you want to skip this particular event.
199
199
200
200
### __`IDENTIFY_USER_OUTGOING`__
201
-
(optional, but highly recommended) _(req, res) => string_, a function that takes [Requests](http://docs.python-requests.org/en/master/api/) request and response, and returns a string that is the user id used by your system. While Moesif tries to identify users automatically,
201
+
(optional, but highly recommended) _(req, res) => string_, a function that takes [Requests](https://requests.readthedocs.io/en/master/) request and response, and returns a string that is the user id used by your system. While Moesif tries to identify users automatically,
202
202
but different frameworks and your implementation might be very different, it would be helpful and much more accurate to provide this function.
203
203
204
204
### __`IDENTIFY_COMPANY_OUTGOING`__
205
-
(optional) _(req, res) => string_, a function that takes [Requests](http://docs.python-requests.org/en/master/api/) request and response, and returns a string that is the company id for this event.
205
+
(optional) _(req, res) => string_, a function that takes [Requests](https://requests.readthedocs.io/en/master/) request and response, and returns a string that is the company id for this event.
206
206
207
207
### __`GET_METADATA_OUTGOING`__
208
-
(optional) _(req, res) => dictionary_, a function that takes [Requests](http://docs.python-requests.org/en/master/api/) request and response, and
208
+
(optional) _(req, res) => dictionary_, a function that takes [Requests](https://requests.readthedocs.io/en/master/) request and response, and
209
209
returns a dictionary (must be able to be encoded into JSON). This allows
210
210
to associate this event with custom metadata. For example, you may want to save a VM instance_id, a trace_id, or a tenant_id with the request.
211
211
212
212
### __`GET_SESSION_TOKEN_OUTGOING`__
213
-
(optional) _(req, res) => string_, a function that takes [Requests](http://docs.python-requests.org/en/master/api/) request and response, and returns a string that is the session token for this event. Again, Moesif tries to get the session token automatically, but if you setup is very different from standard, this function will be very help for tying events together, and help you replay the events.
213
+
(optional) _(req, res) => string_, a function that takes [Requests](https://requests.readthedocs.io/en/master/) request and response, and returns a string that is the session token for this event. Again, Moesif tries to get the session token automatically, but if you setup is very different from standard, this function will be very help for tying events together, and help you replay the events.
214
214
215
215
### __`LOG_BODY_OUTGOING`__
216
216
(optional) _boolean_, default True, Set to False to remove logging request and response body.
0 commit comments