For Googlers: motivating details / context can be found in Buganizer issue # 367762417
Steps to reproduce
- Execute in an environment in which tracing context has been supplied via
X-Cloud-Trace-Context.
Observed
The LogEntry that is created contains a span_id that is incorrect.
Note that LogEntry.span_id should be the hexadecimal encoding of the span ID, whereas X-Cloud-Trace-Context (unlike traceparent) encodes the span_id in decimal format.
Expected
The LogEntry.span_id field should be populated with the canonical (hexadecimal) representation of the span ID.