Skip to main content

Adding Tags

You can add tags when initializing AgentOps, whicreh is the most common approach:
Alternatively, when using manual trace creation:
Legacy approach using agentops.start_session(default_tags=["development", "testing", "claude-3"]) is deprecated and will be removed in v4.0. Use agentops.start_trace() instead.

Tag Use Cases

Tags can be used for various purposes:

Environment Identification

Tag sessions based on their environment:

Feature Tracking

Tag sessions related to specific features or components:

User Segmentation

Tag sessions based on user characteristics:

Experiment Tracking

Tag sessions as part of specific experiments:

Model Identification

Tag sessions with the models being used:

Viewing Tagged Sessions

In the AgentOps dashboard:
  1. Use the tag filter to select specific tags
  2. Combine multiple tags to refine your view
  3. Save filtered views for quick access

Best Practices

  • Use a consistent naming convention for tags
  • Include both broad categories and specific identifiers
  • Avoid using too many tags per session (3-5 is typically sufficient)
  • Consider using hierarchical tag structures (e.g., “env:production”, “model:gpt-4”)
  • Update your tagging strategy as your application evolves