Skip to content

feat(resource): support list-valued resource attributes (PIPE-1253) - #279

Open
Dylan-M wants to merge 2 commits into
dylanmyers/pipe-1036-wire-environmentfrom
dylanmyers/pipe-1253-resource-array-attrs
Open

feat(resource): support list-valued resource attributes (PIPE-1253)#279
Dylan-M wants to merge 2 commits into
dylanmyers/pipe-1036-wire-environmentfrom
dylanmyers/pipe-1253-resource-array-attrs

Conversation

@Dylan-M

@Dylan-M Dylan-M commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Stacked on #278

Proposed Change

Lets a per-record resource attribute hold a list, which host identity needs for
host.ip and host.mac.

  • Widens the resource attribute bag from map[string]string to map[string]any.
  • The OTLP metrics builder serializes a []string resource value as an OTLP
    ArrayValue.

Only the OTLP metrics builder and stdout JSON serialize resource today; other
outputs drop it, unchanged.

Validation: run hostmetrics with the OTLP output and confirm a list-valued attribute
renders as an array in the payload. Tests assert a []string resource attribute
serializes to an OTLP array and scalars are unaffected.

Checklist
  • Changes are tested
  • CI has passed

@Dylan-M Dylan-M changed the title refactor(resource): widen resource attribute bag to map[string]any (PIPE-1253) feat(resource): support list-valued resource attributes (PIPE-1253) Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant