census-instrumentation / opencensus-go

A stats collection and distributed tracing framework
http://opencensus.io
Apache License 2.0
2.05k stars 326 forks source link

Safely reject invalid-length span and trace ids #1206

Closed aopat closed 4 years ago

aopat commented 4 years ago

Fixes #1205

Current behaviour is to panic on span/trace IDs with valid hex encoding which exceed expected lengths.

This PR causes these IDs to be rejected as for any other invalid encoding.