We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 875d2f2 commit eace769Copy full SHA for eace769
langfuse/_client/span_processor.py
@@ -63,9 +63,15 @@ def __init__(
63
if blocked_instrumentation_scopes is not None
64
else []
65
)
66
- flush_at = flush_at or int(os.environ.get(LANGFUSE_FLUSH_AT, 15))
67
- flush_interval = flush_interval or float(
68
- 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
69
70
+ env_flush_interval = os.environ.get(LANGFUSE_FLUSH_INTERVAL, None)
71
+ flush_interval = (
72
+ flush_interval or float(env_flush_interval)
73
+ if env_flush_interval is not None
74
+ else None
75
76
77
basic_auth_header = "Basic " + base64.b64encode(
0 commit comments