I noticed that TraceState.validateKey is loose compared to the ABNF in the spec. There are a couple missing tests:
- when tenant format is used (
@), the right-side can be 1-14 characters. this is not validated
- only when tenant format is used (
@), the first character can be a digit. Otherwise, it must be a letter
There might be some other problems, but these I noticed. As the spec text doesn't elaborate on the above points, I tried to correct it FWIW w3c/trace-context#386
I noticed that
TraceState.validateKeyis loose compared to the ABNF in the spec. There are a couple missing tests:@), the right-side can be 1-14 characters. this is not validated@), the first character can be a digit. Otherwise, it must be a letterThere might be some other problems, but these I noticed. As the spec text doesn't elaborate on the above points, I tried to correct it FWIW w3c/trace-context#386