Skip to content

Commit 8061065

Browse files
authored
Increasing max_queue_size (#442)
1 parent 4a6a56e commit 8061065

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

agentops/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def init(
5959
be read from the AGENTOPS_API_ENDPOINT environment variable. Defaults to 'https://api.agentops.ai'.
6060
max_wait_time (int, optional): The maximum time to wait in milliseconds before flushing the queue.
6161
Defaults to 5,000 (5 seconds)
62-
max_queue_size (int, optional): The maximum size of the event queue. Defaults to 100.
62+
max_queue_size (int, optional): The maximum size of the event queue. Defaults to 512.
6363
tags (List[str], optional): [Deprecated] Use `default_tags` instead.
6464
default_tags (List[str], optional): Default tags for the sessions that can be used for grouping or sorting later (e.g. ["GPT-4"]).
6565
instrument_llm_calls (bool): Whether to instrument LLM calls and emit LLMEvents.

agentops/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def __init__(self):
1010
self.parent_key: Optional[str] = None
1111
self.endpoint: str = "https://api.agentops.ai"
1212
self.max_wait_time: int = 5000
13-
self.max_queue_size: int = 100
13+
self.max_queue_size: int = 512
1414
self.default_tags: set[str] = set()
1515
self.instrument_llm_calls: bool = True
1616
self.auto_start_session: bool = True

0 commit comments

Comments
 (0)