Skip to main content

Overview

Keywords AI Parameters are special attributes you can attach to spans for enhanced filtering, grouping, and metadata in the Keywords AI dashboard.

Parameters

customer_identifier

Identifies the customer or user associated with the trace. Useful for filtering traces by customer.

trace_group_identifier

Groups related traces together. Useful for organizing traces by feature, team, or project.

metadata

Arbitrary key-value pairs for additional context. Useful for business-specific information.

Complete Example

Use Cases

Customer Support

Filter traces by customer ID when investigating support tickets:

Feature Tracking

Group traces by feature for usage analytics:

Business Metrics

Track business-relevant information:

Multi-Tenant Applications

Identify traces by tenant:

Association Properties vs Keywords AI Params

Using Both Together

Best Practices

  • Always include customer_identifier for user-specific traces
  • Use trace_group_identifier to organize traces by feature or team
  • Store business-relevant information in metadata
  • Keep metadata values simple (strings, numbers, booleans)
  • Avoid sensitive information (passwords, tokens) in metadata
  • Use consistent naming conventions for metadata keys
  • Update params early in the span lifecycle for complete context