Usage Example
example_usage.py
# Example integration for LangChain & LangGraph
from agentis import init, observe
# Initialize Agentis with auto-instrumentation
init(
project="production-fleet",
environment="production",
redact_pii=True
)
@observe(name="langchain_&_langgraph")
def execute_task(payload: dict):
# Traces, spans and costs are tracked with 0ms added latency
return {"status": "success", "data": payload}
Key Capabilities
- OpenTelemetry OTLP standard semantics across all parent and child spans.
- Exact span-end token pricing computed locally across 2,500+ foundation models.
- Client-side PII scrubbing before telemetry packets leave your application memory.