Attributes - Metadata and Context
Understanding attributes and how they provide rich metadata and context for your traces and spans
Attributes are key-value pairs that provide rich metadata and context for your traces and spans. They help you understand what happened during an operation, why it happened, and what the results were.
🎯 What are Attributes?
Attributes are structured data that describe:
- What happened during an operation
- Why an operation was performed
- How an operation was configured
- What the results were
- Who or what triggered the operation
🏗️ Attribute Structure
Every attribute has:
- Key: A descriptive name (e.g.,
customer.id
,ai.model
) - Value: The actual data (string, number, boolean, or object)
- Type: Automatically inferred from the value
- Scope: Trace-level or span-level
📊 Attribute Categories
System Attributes
AI-Specific Attributes
Business Attributes
Performance Attributes
🎯 Attribute Naming Conventions
Hierarchical Naming
Use dot notation to create logical hierarchies:
Consistent Prefixes
Use consistent prefixes for related attributes:
🔄 Setting Attributes
Single Attributes
Multiple Attributes
Conditional Attributes
📈 Attribute Types
String Attributes
Numeric Attributes
Boolean Attributes
Array Attributes
Object Attributes
🎪 Dynamic Attributes
Runtime Attributes
Conditional Attributes
🔍 Attribute Analysis
Filtering and Search
Attributes enable powerful filtering and search:
Aggregation and Analytics
🚀 Next Steps
Now that you understand attributes, explore these related concepts:
Best Practices
- Attributes Best Practices - Learn how to create effective attributes
Attributes provide the context and metadata that make your traces meaningful. They enable powerful analysis, debugging, and optimization of your AI applications.
Get Early Access to Noveum.ai Platform
Be the first one to get notified when we open Noveum Platform to more users. All users get access to Observability suite for free, early users get free eval jobs and premium support for the first year.