Why you should keep all GenAI telemetry
Telemetry from GenAI traffic is usually a small share of total telemetry volume. Capturing all of it adds little to what you send to Honeycomb and ensures agent timelines and LLM cost data stays accurate. Unlike ordinary infrastructure traffic, GenAI telemetry cannot grow unbounded. Every GenAI span corresponds to an LLM call you already pay a model provider for, so you cannot produce more of this telemetry without spending more on tokens.Keep GenAI traces with Refinery
If you’re using Refinery to reduce your telemetry volume, you can keep 100% of GenAI traces and apply dynamic sampling to everything else. Refinery’sRulesBasedSampler matches a trace when any span in that trace satisfies the condition, so checking for the presence of a GenAI attribute keeps the whole trace.
Refinery evaluates rules in the order they appear in the configuration, so list the GenAI rule first.
Make sure the
gen_ai.conversation.id attribute is present on all of your GenAI spans.
Refinery can only match the following rule against spans that carry this attribute.