langchain-ai / langsmith-sdk

LangSmith Client SDK Implementations
https://smith.langchain.com/
MIT License
387 stars 71 forks source link

[Python] Check if mid-trace #769

Closed hinthornw closed 3 months ago

hinthornw commented 3 months ago

for "tracing is enabled".

This isn't relevant for @traceable only tracing, but comes into play if you're crossing over to langchain.

Also fix a bg in trace context manager where it would be persisting the run tree inferred by headers beyond its desired lifespan