Closed
Description
Describe your environment
- OS: Linux (Debian 10)
- Python: 3.9.2 (vanilla)
Steps to reproduce
What is the expected behavior?
Trace ID in OpenTelemetry for Python is defined as "16-bytes bytes" which is following OpenTelemetry's spec
What is the actual behavior?
Trace ID is just defined as int
and there is no validation for the length of the ID in the SpanContext constructor.
Additional context
If we make OpenTelemetry for Python follow the existing spec as-is, it may be braking changes for existing libraries including 1st party and 3rd parties.
Some other languages are validating the length of data: