Skip to content

Span ID reported when "X-Cloud-Trace-Context" is used is incorrect #942

@michaelsafyan

Description

@michaelsafyan

For Googlers: motivating details / context can be found in Buganizer issue # 367762417

Steps to reproduce

  1. 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.

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the googleapis/python-logging API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions