Skip to main content
Use Cases
  • Attributing token costs and latency to specific features or services.
  • Monitoring which internal tools or products drive the most LLM usage.
  • Filtering observability dashboards by application for debugging or billing.
  • Enforcing separate budgets per product line or team.

Quick Start

Name your requests to track usage by application or service.

Configuration

ParameterTypeRequiredDescription
namestringNoThe name to display on the trace. If not specified, the default system name will be used.
For backwards compatibility, orq.name is also supported but deprecated. Use top-level name for new implementations.
Default behavior: If no name provided, system uses default identifier.

Naming Conventions

Best practices

  • Use consistent patterns across team.
  • Include environment (dev/staging/prod).
  • Avoid timestamps or dynamic values.
  • Keep names under 50 characters.
  • Use alphanumeric and hyphens only.

Use Cases

ScenarioNaming StrategyExample
MicroservicesService-based naminguser-service, payment-api
Multi-tenantTenant identificationtenant-123, enterprise-client
A/B testingVariant trackingexperiment-A, control-group
Feature flagsFeature identificationnew-ui-beta, legacy-flow

Code examples

Environment Management

Configuration by environment

Environment-specific examples

Usage

Filtering by application

  • View requests by specific app/service.
  • Compare performance across applications.
  • Track costs per application.
  • Monitor error rates by service.

Metrics available

The following are available metrics available for App Tracking:
  • Request volume per application.
  • Response times by service.
  • Cost allocation by project.
  • Error patterns by environment.

Advanced Patterns

Dynamic naming

Feature flag integration

Version tracking

Troubleshooting

Names not appearing in dashboard
  • Check name follows alphanumeric + hyphens pattern.
  • Verify requests are being sent successfully.
  • Ensure name is under character limit (50 chars).
Fragmented tracking data
  • Standardize naming conventions across team.
  • Use environment variables for consistency.
  • Implement a centralized naming function.
Too many unique names
  • Avoid timestamps or random values.
  • Limit to ~50 unique names per account.
  • Use hierarchical naming instead of flat structure.

Monitoring

The following metrics are available for monitoring.

Analytics queries

The following queries can be answered using the above metrics.
  • Which applications use AI most?
  • What’s the cost per application?
  • Which services have highest error rates?
  • How does performance vary by application?

Best Practices

Naming standards

  • Document naming conventions for your team.
  • Use consistent separators (hyphens recommended).
  • Include environment in name for clarity.
  • Avoid special characters or spaces.

Example Implementation

To make sure teams within an Engineering Organization align on App Tracking principles:
  • Maintain a list of approved application names.
  • Use code reviews to enforce naming standards.
  • Set up monitoring alerts for new/unexpected names.
  • Regular cleanup of unused tracking names.

Limitations

  • Name constraints: Alphanumeric characters and hyphens only.
  • Length limits: Maximum 50 characters per name.
  • Storage impact: Many unique names increase metadata storage.
  • Query performance: Large numbers of unique names may slow filtering.
  • No retroactive changes: Historical traces keep original names.

Integration Examples

With external monitoring systems

With logging