For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Copy to LLMGithubGo to App
DocumentationIntegrationsAgent OptimizationSelf-hosting OpikSDK & API referenceOpik University
DocumentationIntegrationsAgent OptimizationSelf-hosting OpikSDK & API referenceOpik University
    • Overview
  • Intro
    • Opik Overview
    • Next steps / Set expectations
  • Observability
    • Log Traces
    • Annotate Traces
  • Evaluation
    • Evaluation Concepts and Overview
    • Create Evaluation Datasets
    • Define Evaluation Metrics
    • Evaluate your LLM Application
    • No-code LLM Evaluation Workflow
  • Prompt Engineering
    • Prompt Management
    • Prompt Playground
  • Testing
    • PyTest Integration
  • Production Monitoring
    • Online Evaluation Rules
LogoLogo
Copy to LLMGithubGo to App
On this page
  • Getting Started with Opik Tracing
  • Key Highlights
Observability

Log Traces

Was this page helpful?
Previous

Annotate Traces

Next
Built with

Getting Started with Opik Tracing

This hands-on video demonstrates how to implement tracing in Opik, the foundation of LLM observability. You’ll learn how traces capture complete interactions between your application and LLMs (inputs, outputs, metadata, and feedback scores), and see step-by-step implementation using OpenAI as an example. Think of traces as the equivalent of logs in traditional software, but specifically designed for LLM applications.

Key Highlights

  • Simple Setup: Configure Opik with just your API key and workspace settings - optionally set project names to organize traces
  • Multiple Integration Methods: Use dedicated integrations (like track_openai) for automatic tracing, or the @track decorator for custom function tracing
  • Rich Trace Visualization: View complete interaction flows in the Opik UI with inputs, outputs, and hierarchical spans for multi-step processes
  • Powerful Filtering & Search: Filter traces by time ranges, tags, feedback scores, and search by specific trace IDs for production debugging
  • Framework Support: Dedicated integrations available for popular frameworks like LangChain, LlamaIndex, and others
  • Automatic Span Creation: Multi-step applications and RAG workflows automatically generate spans for each step, providing complete process visibility
  • Function-Level Tracing: The @track decorator creates detailed trace stacks that mirror your function structure, making debugging intuitive
  • Production-Ready: Tag system and filtering capabilities make it easy to organize and analyze traces from production environments