UQL: undefined

Summary

1
undefined(attribute_name)

undefined returns true if a specified attribute does not exist on a span or metric.


Supported Pipelines: spans, metric

Applicable Stages: filter, spans_sample, trace_filter

undefined is not available for alerts.

Arguments

Name Type Required/Optional Description
attribute_name string Required Name of the attribute on span or metric to check absence

Examples

Checking for attribute compliance

When enforcing an attribute policy for instrumentation, you’ll need to know which services are out of compliance. The query below will show service and operation pairs that are missing the k8.pod.name attribute:

1
2
3
4
spans count
| delta
| filter undefined(k8.pod.name)
| group_by [service, operation], sum

See also

UQL: defined

UQL reference

UQL cheat sheet

Updated Jun 6, 2023