Skip to content

Commit 0d78822

Browse files
authored
Document changing servers and tracing requests (#619)
1 parent 07fc0a6 commit 0d78822

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

README.md

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,30 @@ configuration.unstable_operations["<OperationName>"] = True
8181

8282
where `<OperationName>` is the name of the method used to interact with that endpoint. For example: `list_log_indexes`, or `get_logs_index`
8383

84+
### Changing Server
85+
86+
When talking to a different server, like the `eu` instance, change the `server_variables` on your configuration object:
87+
88+
```python
89+
configuration.server_variables["site"] = "datadoghq.eu"
90+
```
91+
92+
### Disable compressed payloads
93+
94+
If you want to disable GZIP compressed responses, set the `compress` flag
95+
on your configuration object:
96+
97+
```python
98+
configuration.compress = False
99+
```
100+
101+
### Enable requests tracing
102+
If you want to enable requests tracing, set the `debug` flag on your configuration object:
103+
104+
```python
105+
configuration.debug = True
106+
```
107+
84108
## Documentation for API Endpoints and Models
85109

86110
Documentation for API endpoints and models can be found under the docs subdirectories, in [v1](/docs/v1#documentation-for-api-endpoints) and [v2](/docs/v2#documentation-for-api-endpoints).
@@ -96,15 +120,6 @@ configuration.api_key["apiKeyAuth"] = "YOUR_API_KEY"
96120
configuration.api_key["appKeyAuth"] = "YOUR_APPLICATION_KEY"
97121
```
98122

99-
### Disable compressed payloads
100-
101-
If you want to disable GZIP compressed responses, set the `compress` flag
102-
on your configuration object:
103-
104-
```python
105-
configuration.compress = False
106-
```
107-
108123
## Author
109124

110125

0 commit comments

Comments
 (0)