Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions langfuse/_client/span_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,15 @@ def __init__(
if blocked_instrumentation_scopes is not None
else []
)
flush_at = flush_at or int(os.environ.get(LANGFUSE_FLUSH_AT, 15))
flush_interval = flush_interval or float(
os.environ.get(LANGFUSE_FLUSH_INTERVAL, 0.5)

env_flush_at = os.environ.get(LANGFUSE_FLUSH_AT, None)
flush_at = flush_at or int(env_flush_at) if env_flush_at is not None else None

env_flush_interval = os.environ.get(LANGFUSE_FLUSH_INTERVAL, None)
flush_interval = (
flush_interval or float(env_flush_interval)
if env_flush_interval is not None
else None
)

basic_auth_header = "Basic " + base64.b64encode(
Expand Down
Loading