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:
Zander Chase
2023-06-02 12:13:56 -07:00
committed by GitHub
parent 949729ff5c
commit 20ec1173f4
8 changed files with 36 additions and 188 deletions

View File

@@ -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