Skip to content

Commit a903980

Browse files
chore: revert README changes
1 parent 01c4d73 commit a903980

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

README.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -319,29 +319,6 @@ On timeout, an `APITimeoutError` is thrown.
319319

320320
Note that requests that time out are [retried twice by default](#retries).
321321

322-
#### Tracing Configuration
323-
324-
When using the tracing decorators (`@trace()` and `@trace_async()`), you can configure timeouts and retries for the underlying API calls to Openlayer using the `configure()` function:
325-
326-
```python
327-
from openlayer.lib import trace, configure
328-
329-
# Configure timeout and retries for tracing API calls
330-
configure(
331-
api_key="your_api_key_here",
332-
inference_pipeline_id="your_pipeline_id_here",
333-
timeout=30.0, # 30 seconds timeout for tracing API calls (int or float)
334-
max_retries=5 # Maximum number of retries for failed requests (default: 2)
335-
)
336-
337-
# Now use the decorators normally
338-
@trace()
339-
def my_function():
340-
return "result"
341-
```
342-
343-
These settings apply to all API calls made by the tracer when streaming trace data to Openlayer. If not specified, the defaults are 60 seconds timeout and 2 retries.
344-
345322
## Advanced
346323

347324
### Logging

0 commit comments

Comments
 (0)