Skip to content

Activity should generate new random ids when receives invalid W3C traceId and spanId #29859

Closed
dotnet/corefx
#37395

Description

@lmolkova

https://www.w3.org/TR/trace-context/#trace-id

Implementations HAVE TO ignore the traceparent when the trace-id is invalid. For instance, if it contains non-allowed characters.

https://www.w3.org/TR/trace-context/#parent-id

Implementations HAVE TO ignore the traceparent when the parent-id is invalid. For instance, if it contains non lower case hex characters.

Now, when incoming traceId or spanId are invalid, they are set to 0, check here and tests are missing/wrong too.

Activity

  1. transferred this issue fromdotnet/corefxon Feb 1, 2020
  2. added this to the 3.0 milestone on Feb 1, 2020
  3. ghost locked as resolved and limited conversation to collaborators on Dec 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions