Get Started
Account setup, SDK installation, and your first traces.What is Netra?
What is Netra?
What do I need to start using Netra?
What do I need to start using Netra?
- A Netra account (US or EU data region)
- An API key generated from the Netra dashboard
- The
netra-sdkpackage (Python >=3.10, <3.14 or Node.js 18+)
How do I create my first project?
How do I create my first project?
- Go to Organisation → Projects in the side navigation panel
- Click Create Project and provide a project name
- Confirm by clicking Create Project
How long does setup take?
How long does setup take?
Netra.init() with your API key, and run any LLM workflow — traces appear in the dashboard immediately. Follow the Quick Start to get started.How do I generate my first trace?
How do I generate my first trace?
@workflow, @agent, @task) or manual spans for fine-grained control. See the Tracing Quick Start for a complete example.Observability
Traces, spans, agents, sessions, costs, and latency monitoring.What does a Netra trace include?
What does a Netra trace include?
What is the difference between traces and spans?
What is the difference between traces and spans?
What tracing methods does Netra support?
What tracing methods does Netra support?
- Auto-instrumentation — Zero code changes. Netra automatically traces supported libraries (OpenAI, LangChain, Pinecone, etc.)
- Decorators — Add
@workflow,@agent, or@taskto your functions for structured tracing with minimal code - Manual tracing — Full control using context managers (Python) or
SpanWrapperfor custom spans
How do I track agents and sessions?
How do I track agents and sessions?
- Agents: Use the
@agentdecorator to track agent execution, tool usage patterns, and decision flows - Sessions: Call
set_session_idto group related interactions into a single session - Users: Call
set_user_idto attribute traces to individual users
How do I track costs in Netra?
How do I track costs in Netra?
Evaluation
Datasets, evaluators, test runs, and automated quality checks.What is an evaluation in Netra?
What is an evaluation in Netra?
What are datasets and how do I create one?
What are datasets and how do I create one?
- Converting production traces into test cases with one click
- Manually adding test cases in the dashboard
- Organizing by feature, model version, or release
What types of evaluators are available?
What types of evaluators are available?
- Quality: Coherence, Factual Accuracy, Answer Relevance
- Guardrails: Toxicity, Bias, PII Detection
- Agentic: Tool Call Accuracy, Goal Fulfillment
Can evaluations run automatically?
Can evaluations run automatically?
How do I view evaluation results?
How do I view evaluation results?
Simulation
Multi-turn conversation testing with configurable personas and goals.What is Simulation?
What is Simulation?
How do I create a simulation scenario?
How do I create a simulation scenario?
- Set a conversation goal (e.g., “Get a refund for a damaged product”)
- Choose a user persona (neutral, friendly, frustrated, confused, or custom)
- Add user data and facts the agent should communicate
- Select and configure evaluators to score the conversation
What personas are available for simulation?
What personas are available for simulation?
- Neutral — Baseline performance testing
- Friendly — Tests professionalism without pushback
- Frustrated — Tests de-escalation and patience
- Confused — Tests clarity and explanation quality
- Custom — Define your own persona for industry-specific scenarios
How are simulations scored?
How are simulations scored?
- Quality (6): Guideline Adherence, Conversation Completeness, Profile Utilization, Conversational Flow, Conversation Memory, Factual Accuracy
- Agentic (2): Goal Fulfillment, Information Elicitation
How do I debug a failed simulation?
How do I debug a failed simulation?
- Conversation — Read the full multi-turn transcript to find where things went wrong
- Evaluation Results — See which evaluators failed and their scores
- Scenario Details — Verify the goal, persona, user data, and facts were configured correctly
Integrations & SDKs
Supported languages, frameworks, providers, and auto-instrumentation.What languages does Netra support?
What languages does Netra support?
- Python:
netra-sdkon PyPI (Python >=3.10, <3.14) - TypeScript:
netra-sdkon npm (Node.js 18+)
What frameworks and providers does Netra integrate with?
What frameworks and providers does Netra integrate with?
- LLM Providers (14): OpenAI, Anthropic, Google Gemini, AWS Bedrock, Mistral, Groq, Cohere, and more
- AI Frameworks (11): LangChain, LangGraph, LlamaIndex, CrewAI, Pydantic AI, DSPy, and more
- Vector Databases (8): Pinecone, ChromaDB, Qdrant, Weaviate, Milvus, and more
- Speech Services (3): Deepgram, ElevenLabs, Cartesia
How does auto-instrumentation work?
How does auto-instrumentation work?
Netra.init() is called. You can either specify which libraries to instrument (e.g., InstrumentSet.OPENAI) or omit the instruments parameter to let Netra auto-detect all supported libraries in your environment.How do I track prompt or model versions?
How do I track prompt or model versions?
prompt_version or model_version as metadata attributes on your spans, enabling comparisons and analysis across versions in the dashboard.Does Netra support gateways or webhooks?
Does Netra support gateways or webhooks?
Dashboards & Alerts
Custom analytics, real-time monitoring, and proactive notifications.Can I build custom dashboards?
Can I build custom dashboards?
How do I set up alerts?
How do I set up alerts?
- Scope: Trace-level or span-level monitoring
- Metrics: Cost, latency, error rate, token count
- Filters: Model, tenant ID, environment, service name
- Delivery: Email or Slack (via API token or webhook)
Multi-Tenancy
Per-customer isolation, usage attribution, and tenant-level monitoring for B2B SaaS.What is a tenant in Netra?
What is a tenant in Netra?
tenant_id for each customer.How do I tag traces by tenant?
How do I tag traces by tenant?
set_tenant_id early in your request lifecycle (typically in middleware) to associate all subsequent traces with that customer:- Python:
Netra.set_tenant_id("acme-corp") - TypeScript:
Netra.setTenantId("acme-corp")
Is tenant data isolated?
Is tenant data isolated?
What is the recommended tenant strategy for B2B SaaS?
What is the recommended tenant strategy for B2B SaaS?
tenant_id for each customer. This gives you per-customer isolation for traces, metrics, and costs while keeping everything within a single Netra account. See the Tenants guide for setup details.Can I set alerts per tenant?
Can I set alerts per tenant?
Security & Compliance
Data handling, privacy controls, and regulatory compliance.What data does Netra store?
What data does Netra store?
trace_content (to enable or disable capturing prompt/completion content).Does Netra support data retention controls?
Does Netra support data retention controls?
Does Netra support role-based access control (RBAC)?
Does Netra support role-based access control (RBAC)?
Is Netra SOC 2, GDPR, or HIPAA compliant?
Is Netra SOC 2, GDPR, or HIPAA compliant?
Where is customer data stored?
Where is customer data stored?
Can Netra run on-prem?
Can Netra run on-prem?
Pricing & Billing
Plans, usage metering, and billing details.How is Netra pricing calculated?
How is Netra pricing calculated?
Does Netra support annual plans or enterprise contracts?
Does Netra support annual plans or enterprise contracts?
Is on-prem deployment priced differently?
Is on-prem deployment priced differently?
Where can I view usage and invoices?
Where can I view usage and invoices?
Help & Troubleshooting
Common issues, debugging steps, and support.Why am I not seeing any traces?
Why am I not seeing any traces?
- Your
NETRA_API_KEYenvironment variable is set correctly Netra.init()is called before any LLM or framework calls- The OTLP endpoint is reachable from your environment
- Your workflow is actually executing (check for errors in your application logs)
Why are tool calls missing from traces?
Why are tool calls missing from traces?
@task decorator or instrumented manually using SpanType.TOOL. Auto-instrumentation only captures calls to supported libraries — custom tool functions need explicit instrumentation.Why are costs or tokens not showing?
Why are costs or tokens not showing?
Why do evaluations show no data?
Why do evaluations show no data?
How do I contact Netra support?
How do I contact Netra support?
What should I share when reporting a bug?
What should I share when reporting a bug?
