Skip to content

What's the recommended guideline for generating parent-id? #412

@prakashjmsft

Description

@prakashjmsft

From here - https://www.w3.org/TR/trace-context/#parent-id

This is the ID of this request as known by the caller (in some tracing systems, this is known as the span-id, where a span is the execution of a client request). It is represented as an 8-byte array, for example, 00f067aa0ba902b7. All bytes as zero (0000000000000000) is considered an invalid value.

Vendors MUST ignore the traceparent when the parent-id is invalid (for example, if it contains non-lowercase hex characters).

Current guidelines for parent-id mentions this should be an 8-byte array. But, we are missing guidelines/recommendations that this should be locally unique within the context of a trace? Also, how have SDKs implemented this to ensure span-id is unique within the context of a trace? We need to elaborate the guidelines similar to trace-id - https://www.w3.org/TR/trace-context/#considerations-for-trace-id-field-generation

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions