mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-14 05:56:40 +00:00
Update Tracer Auth / Reduce Num Calls (#5517)
Update the session creation and calls --------- Co-authored-by: Ankush Gola <ankush.gola@gmail.com>
This commit is contained in:
@@ -148,8 +148,7 @@ def test_tracing_v2_context_manager() -> None:
|
||||
)
|
||||
if "LANGCHAIN_TRACING_V2" in os.environ:
|
||||
del os.environ["LANGCHAIN_TRACING_V2"]
|
||||
with tracing_v2_enabled() as session:
|
||||
assert session
|
||||
with tracing_v2_enabled():
|
||||
agent.run(questions[0]) # this should be traced
|
||||
|
||||
agent.run(questions[0]) # this should not be traced
|
||||
|
Reference in New Issue
Block a user