Relational Fields: Query Even More Relationships in Your Traces
Blog post from Honeycomb
Earlier this year, Honeycomb expanded its relational fields feature, which allows users to query spans based on their relationships within a trace rather than in isolation. The update introduces four new prefixes—child., none., any2., and any3.—to complement the existing root., parent., and any. prefixes. These enhancements enable more precise queries, such as targeting direct child spans, excluding traces with certain criteria, and querying additional spans within the same trace. For instance, the none. prefix can identify traces without specific functions being called, while the child. prefix helps isolate errors in a checkout process by focusing on child spans. The any2. and any3. prefixes allow for querying up to three additional spans with specific attributes within a trace, facilitating complex queries such as mapping user IDs to actions within a trace. These improvements offer users more robust tools for analyzing data relationships in Honeycomb.