Home / Companies / Datadog / Blog / Post Details
Content Deep Dive

Monitor prompt caching to optimize your token usage

Blog post from Datadog

Post Details
Company
Date Published
Author
Thomas Sobolik
Word Count
1,810
Company Posts That Month
28
Language
English
Hacker News Points
-
Post removed?
No
Summary

Datadog’s 2026 State of AI Engineering report found that system prompts accounted for 69% of input tokens in customer traces in March 2026, highlighting the cost and latency impact of repeated agent instructions, tool definitions, guardrails, and reference material. Prompt caching reduces this overhead by storing the intermediate model state for an identical prompt prefix and reusing it on later requests, though provider implementations differ: Anthropic offers automatic and explicit cache breakpoints, while OpenAI automatically caches eligible prefixes and supports explicit breakpoints on newer models. Effective caching depends on keeping shared prompt prefixes stable, placing dynamic user messages and tool results after cache boundaries, and potentially caching prior conversation history separately in multi-turn workflows. Because cache writes can cost more than uncached inputs and minor changes can invalidate cached content, teams should track cache-hit rates, token usage, costs, and latency using API metrics and request traces. Common causes of cache misses include reordered tools, context compaction, changing summaries or memory, and timestamps or request-specific metadata inserted into otherwise static prompt sections.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
LLM 5 6,012 1,158 239 +15%
Observability 3 2,745 728 187 -16%
AI Coding Assistant 1 1,581 554 142 +1%
Loop engineering 1 96 53 32 +32%
Platform Engineering 1 1,691 347 96 +40%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.