How can I auto-instrument my LangChain app in Python without using a LangSmith API key?

Hi everyone,

I’m using LangChain in Python and I’m interested in automatically instrumenting my app (e.g., tracing chains, agents, and tools) for observability and debugging purposes. However, I’d prefer not to use the LangSmith API or provide an API key.

Is there a way to enable built-in logging, tracing, or any alternative instrumentation methods within LangChain itself, without needing to connect to LangSmith?

Any insights or workarounds would be appreciated!

Thanks in advance.