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
-23Lines changed: 0 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -319,29 +319,6 @@ On timeout, an `APITimeoutError` is thrown.
319
319
320
320
Note that requests that time out are [retried twice by default](#retries).
321
321
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
-
defmy_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.
0 commit comments