LangGraphInstrumentor
LangGraphInstrumentor
Examples
from fiddler_langgraph import FiddlerClient
from fiddler_langgraph.tracing import LangGraphInstrumentor
client = FiddlerClient(api_key="...", application_id="...", url="https://your-instance.fiddler.ai")
instrumentor = LangGraphInstrumentor(client=client)
instrumentor.instrument()# Clean up instrumentation when shutting down
instrumentor.uninstrument()with LangGraphInstrumentor(client).instrument():
# Instrumented operations here
agent.invoke({"messages": [...]})
# Automatically uninstrumented after block
```python
Context manager pattern (advanced):
Last updated
Was this helpful?