Skip to main content

Module resource_info

Module resource_info 

Source
Expand description

Resource descriptor synthesized from OTLP metrics requests, so the entity graph reads one table instead of scanning every logical metric table for attributes the promote filter may have dropped.

Columns are a fixed allowlist under the raw OTel attribute names: the conventions whitelist matches fixed names, so they must not follow the per-request label translation strategy or the promote/ignore headers.

Structsยง

ResourceInfoData
Projected attributes (sorted (name, value) pairs) -> graph window -> the newest data-point time seen in that window, which is what the row for that window is stamped with.

Constantsยง

MAX_PROJECTED_TAGS ๐Ÿ”’
Upper bound of is_projected_attr plus the derived job/instance, used to size the per-row buffers.
OTEL_RESOURCE_INFO_TABLE_NAME
Prefixed like the other engine-managed tables, so a user metric is unlikely to claim the name.

Functionsยง

for_each_encoded_time ๐Ÿ”’
Visits the times of the data points the encoder writes rows for, so a resource is described exactly where it is measured rather than wherever its request happens to reach.
is_projected_attr ๐Ÿ”’
Attributes projected under their raw OTel keys. service.instance.id is absent on purpose: it lands in instance.