Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Safely reject invalid-length span and trace ids#1206

Merged
rghetia merged 1 commit intocensus-instrumentation:masterfrom
aopat:bug/long-spanid-panic
Apr 2, 2020
Merged

Safely reject invalid-length span and trace ids#1206
rghetia merged 1 commit intocensus-instrumentation:masterfrom
aopat:bug/long-spanid-panic

Conversation

@aopat
Copy link
Copy Markdown
Contributor

@aopat aopat commented Apr 2, 2020

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.

@aopat aopat requested review from a team, rakyll and rghetia as code owners April 2, 2020 09:46
@rghetia rghetia merged commit d3cf45e into census-instrumentation:master Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Panic when x-b3-spanid exceeds 16 characters

3 participants