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
* style: fix linter errors in tests
* docs: correct inline documentation for MetricsApiConfig class
* refactor: move METRICS_API to MetricsApiConfig so that it can be overridden during SDK development
* feat: add a logger for debugging
* refactor: move submission code to its own file
* feat: add timeout parameter
* fix: remove unnecessary debugging statements
* feat: when the process is exiting, send any queued requests and wait for all outstanding network calls to complete
* refactor: move ALLOWED_HTTP_HOSTS enforcement into the core Metrics processing object, so it can be shared across multiple implementations (coming soon)
* docs: clean up README.md and make sure all parameters are documented
* feat: make it easier for users to override the new `timeout` parameter
* release: bump version to 1.1.0
* Ignore .envrc files (sometimes used in Python development)
* style: proper formatting with black
| development_mode |**default: false** If true, the log will be separate from normal production logs. This is great for separating staging or test data from data coming from customers |
60
-
| denylist |**optional** An array of keys from your API requests and responses headers and bodies that you wish to denylist from sending to ReadMe.<br /><br />If you configure a denylist, it will override any allowlist configuration. |
61
-
| allowlist |**optional** An array of keys from your API requests and responses headers and bodies that you only wish to send to ReadMe. |
62
-
| buffer_length |**default: 10** Sets the number of API calls that should be recieved before the requests are sent to ReadMe |
63
-
| allowed_http_hosts | A list of allowed http hosts for sending data to the ReadMe API. |
| development_mode |**default: false** If true, the log will be separate from normal production logs. This is great for separating staging or test data from data coming from customers. |
58
+
| background_worker_mode |**default: true** If true, requests to the ReadMe API will be made in a background thread. If false, the ReadMe API request will be made synchronously in the main thread, potentially slowing down your HTTP service. |
59
+
| denylist |**optional** An array of keys from your API requests and responses headers and bodies that are blocked from being sent to ReadMe. Both the request and response will be checked for these keys, in their HTTP headers, form fields, URL parameters, and JSON request/response bodies. JSON is only checked at the top level, so a nested field will still be sent even if its key matches one of the keys in `denylist`.<br /><br />If you configure a denylist, it will override any allowlist configuration. |
60
+
| allowlist |**optional** An array of keys from your API requests and responses headers and bodies that you only wish to send to ReadMe. All other semantics match `denylist`. Like `denylist`, only the top level of JSON request/response bodies are filtered. If this option is configured, **only** the whitelisted properties will be sent. |
61
+
| buffer_length |**default: 10** Sets the number of API calls that should be recieved before the requests are sent to ReadMe. |
62
+
| allowed_http_hosts | A list of HTTP hosts which should be logged to ReadMe. If this is present, a request will only be sent to ReadMe if its Host header matches one of the allowed hosts. |
63
+
| timeout | Timeout (in seconds) for calls back to the ReadMe Metrics API. Default 3 seconds. |
0 commit comments