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.
Trust CenterStatusSupportGet a demoPlatform
DocumentationEvals API ReferenceIntegrations & OTELPlatform SettingsSelf-HostingChangelog
DocumentationEvals API ReferenceIntegrations & OTELPlatform SettingsSelf-HostingChangelog
  • Get Started
    • Introduction
    • Setup and Installation
  • LLM Evaluation
    • Introduction
    • Experiments
  • Metrics
    • Introduction
    • Metric Collections
    • Custom Metrics
  • LLM Tracing
    • Introduction
      • Name
      • Tags
      • Metadata
      • Users
    • Signals
    • Troubleshooting
  • Human-in-the-Loop
    • Introduction
    • Collect Feedback
  • Reporting & Analytics
    • Dashboards
    • Executive Insights
  • Red Teaming
    • Introduction
    • Quickstart
    • Frameworks & Policies
    • Risk Profiles
    • Red Team Using DeepTeam
  • Resources
    • Why Confident AI
    • Support
    • Data Handling
    • LLM Use Cases
LogoLogo
Trust CenterStatusSupportGet a demoPlatform
On this page
  • Overview
  • Add Tags to Traces
LLM TracingCustomize Traces

Tags

Adding tags to your traces for better visibility on Confident AI
Was this page helpful?
Previous

Metadata

Adding metadata to your traces for additional information
Next
Built with

Overview

Unlike metadata, which can contain complex structured data, tags are simple string labels that make it easy to group related traces together, and cannot be applied to spans.

Tags provide a simple way to categorize and filter your traces in Confident’s observatory.

Add Tags to Traces

Tags are applied at the trace level, making them visible for all spans within that trace.

Python
TypeScript
main.py
1from deepeval.tracing import observe, update_current_trace
2from openai import OpenAI
3
4client = OpenAI()
5
6@observe(type="agent")
7def llm_app(query: str):
8 update_current_trace(tags=["Causal Chit-Chat"])
9
10 return client.chat.completions.create(
11 model="gpt-4o",
12 messages=[{"role": "user", "content": query}]
13 ).choices[0].message.content
14
15llm_app("Write me a poem.")