Manual vs Automatic Tracking

Understanding when to use manual tracking versus automatic tracking helps you choose the best approach for your application.

Detailed Comparison

FeatureManual TrackingAutomatic Tracking (Wrapper)
Code Complexity~40 lines per API call~15 lines total setup
Token CountingExtract from API responseAutomatic via wrapper
Error ProneCan forget to track callsImpossible to miss
FlexibilityFull control over dataStandardized tracking
Setup Time5-10 min per integration2 min one-time setup
MaintenanceUpdate code for each callZero ongoing maintenance
Best ForCustom providers, special casesOpenAI, Gemini, standard usage
Code ReductionBaseline~60% less code

✓ Use Manual When:

  • • Using a provider without automatic wrapper support
  • • Want granular control over what's tracked
  • • Building custom AI solutions

✓ Use Automatic When:

  • • Want minimal code and setup
  • • Need reliable, consistent tracking
  • • Building standard AI applications (Recommended!)

Recommendation

For most users, automatic tracking is the best choice. It's simpler, more reliable, and easier to maintain. Only use manual tracking if you have specific requirements that automatic tracking doesn't support.

Need help? Contact us at support@withpaygent.com