TECHNOLOGY

Metric View filtering: removed attributes may remain on exemplars

In this article
THE QUICK TAKE

A metric attribute allowlist is not a complete exemplar policy; inspect both exported surfaces.

The diagnostic situation

A serving team removes a diagnostic attribute from a metric stream using an OpenTelemetry View. The exported metric label set is clean, so the change is declared complete. An exemplar still carries the removed value as a filtered attribute. The observation path retained data through a separate mechanism that the metric-series inspection never examined.

Why the observation changes meaning

The metrics SDK explicitly notes that an attribute removed by View configuration may still be exported on exemplars as a filtered attribute. Exemplar filtering and reservoir configuration control a different surface. Removing a field from the aggregate stream therefore does not establish removal from every observation attached to that stream. This is a configuration-boundary issue, not a reason to treat exemplars as inherently unsafe.

Define the instrumentation contract

Define allowed data independently for metric attributes, exemplar attributes and trace links. State whether exemplar context is needed and which filter or reservoir behavior the installed SDK supports. Preserve useful bounded aggregate dimensions without copying request content into supplemental samples. Do not rely on a downstream metric label allowlist to remove fields that travel outside the ordinary time-series label set.

A bounded verification procedure

Create a synthetic observation carrying a clearly artificial disallowed marker and safe allowed metadata. Apply the proposed View and exercise the actual exemplar path under controlled sampling. Inspect the full exporter payload and destination representation. Compare with an explicit exemplar policy control. If the fixture produces no exemplar, report that limited coverage rather than declaring the supplemental path clean.

Evidence required for acceptance

Acceptance evidence includes View definition, exemplar settings, generated observation and captured aggregate plus exemplar output. Show marker absence at each intended surface while allowed diagnostic context remains usable. Verify any backend conversion that flattens exemplar metadata. A clean metric-label screenshot alone is insufficient, and a missing linked trace does not prove exemplar attributes were never exported.

Failure cases and limits

An explicit filter changes diagnostic coverage and may remove navigation useful during incidents. Record that tradeoff rather than silently enabling unrestricted capture again. This protocol tests a particular supplemental metadata path; it does not prove universal content absence across external backends or replace source minimization. Resource attributes, logs and span events still need their own appropriately scoped handling.

A metric attribute allowlist is not a complete exemplar policy; inspect both exported surfaces. OpenTelemetry metrics SDK; OpenTelemetry metrics data model.

The proposed investigation of view filter exemplar attribute is not an executed deployment benchmark. Related reading: From a slow histogram bucket to a trace through an exemplar; Inference API telemetry without default prompt capture.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles