﻿# Phoenix filters: missing attributes can disappear from both equality and inequality views

Audit Phoenix missing-value filter semantics, entity scope and API surface before using a filtered trace selection as evidence of application quality or coverage.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-phoenix-filter-missing-attributes-selection-population/
Language: en

## Define the selected population

A filtered dashboard is a selected dataset, not automatically the full application workload. Phoenix's [filter reference](https://arize.com/docs/phoenix/tracing/how-to-tracing/filter-expressions) defines missing-value behavior that differs from ordinary Python comparison intuition. A record lacking an attribute matches neither an equality nor an inequality comparison against a normal value. If the intended cohort includes missing fields, the filter must express that inclusion deliberately rather than assuming inequality captures everything outside the named category.

## Make missingness a separate diagnostic

Missing attributes can indicate an older application version, incomplete instrumentation or a genuine optional field. Treat those possibilities as evidence to investigate. Compare explicit presence, explicit absence and the desired value group before publishing a quality summary. A filter that silently removes uninstrumented traffic can make results look cleaner while hiding the very cases where observability is least complete. Retain cohort counts alongside the aggregate so readers can see the scope of the selected observations.

## Match span, trace and session scope

The reference distinguishes filter languages for individual spans, traces and sessions. A failure anywhere in a conversation differs from a particular span satisfying an attribute test. Choose the entity that matches the claim and inspect how parent–child relationships or aggregates enter the expression. The [span-export guide](https://arize.com/docs/phoenix/tracing/how-to-tracing/importing-and-exporting-traces/extract-data-from-spans) provides the query context. Exporting matching spans does not by itself establish that entire traces or conversations share the same measured property.

## Verify the supported API surface

The documented filter surfaces do not accept every expression in every endpoint. UI, GraphQL, span queries and REST list operations have different supported entry points. Keep the exact expression and the interface used to apply it. The [evaluation-logging guide](https://arize.com/docs/phoenix/tracing/how-to-tracing/feedback-and-annotations/llm-evaluations) describes how annotations attach to their subjects. A selection based on an annotation must therefore refer to the correct entity and field rather than a similarly named attribute on another level.

## Test inclusion with known records

Create a diagnostic cohort containing the target value, another value and an absent field, then inspect membership under the intended expression. Check scope again after exporting. The guides to [measurement coverage](/journal/fg2-ragas-legacy-evaluate-nan-timeout-coverage/) and [trace-span selection](/journal/fg2-promptfoo-trace-assertions-span-presence-selection/) provide related controls. Report the filter with results so a statement about a selected group remains distinguishable from a statement about all production traffic, including records whose metadata could not support the original selection rule.
