Skip to content

add span_parents to span components format#42

Merged
Ken Jiang (knjiang) merged 2 commits intomainfrom
04-15-add_span_parents_to_span_components_format
Apr 15, 2026
Merged

add span_parents to span components format#42
Ken Jiang (knjiang) merged 2 commits intomainfrom
04-15-add_span_parents_to_span_components_format

Conversation

@knjiang
Copy link
Copy Markdown
Collaborator

@knjiang Ken Jiang (knjiang) commented Apr 15, 2026

This PR adds optional span_parents support to exported Rust SDK SpanComponents and uses it in update_span() / update_span_with_credentials() when materializing logs rows.

Previously, exported span components could not carry parentage, so update_span() and update_span_with_credentials() always omitted span_parents even when the originating span had it. With this change, exported spans can preserve parentage end to end while remaining backward-compatible for callers that do not send the field.

Copy link
Copy Markdown
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait it's a thing that spans can have multiple parents? I thought it was a 1 to N relationship (parent -> children).

@manugoyal
Copy link
Copy Markdown

Wait it's a thing that spans can have multiple parents? I thought it was a 1 to N relationship (parent -> children).

We originally designed it that way in case we wanted to support a DAG-like span structure. But we have never ended up needing it.

@knjiang Ken Jiang (knjiang) merged commit dc578d3 into main Apr 15, 2026
5 checks passed
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.

4 participants