Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about ResourceSpans #491

Closed
monadbobo opened this issue Jul 3, 2023 · 1 comment
Closed

Question about ResourceSpans #491

monadbobo opened this issue Jul 3, 2023 · 1 comment

Comments

@monadbobo
Copy link

monadbobo commented Jul 3, 2023

https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/trace/v1/trace.proto

1 The scope_spans in ResourceSpans is an array, must the spans in this array share a trace_id?
2 In the ScopeSpans message, spans are an array, must the spans in this array belong to the trace (that means their trace_ids are the same)?

I didn't find in the docs does these restrictions mean that their tace_id need not be the same?

@tigrannajaryan
Copy link
Member

There is no to both questions.

Spans in ResourceSpans or in ScopeSpans can belong to different traces and need not have the same trace_id.

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

No branches or pull requests

2 participants