Skip to content

Commit 017e488

Browse files
authored
fix(client): pass env var tracing environment to resource manager (#1331)
1 parent fed7240 commit 017e488

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

langfuse/_client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def __init__(
257257
secret_key=secret_key,
258258
host=self._host,
259259
timeout=timeout,
260-
environment=environment,
260+
environment=self._environment,
261261
release=release,
262262
flush_at=flush_at,
263263
flush_interval=flush_interval,

tests/test_openai.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def test_openai_chat_completion_stream(openai):
9494
assert len(chat_content) > 0
9595

9696
langfuse.flush()
97+
sleep(1)
9798

9899
generation = get_api().observations.get_many(
99100
name=generation_name, type="GENERATION"

0 commit comments

Comments
 (0)