develop icon indicating copy to clipboard operation
develop copied to clipboard

New trace context spec should define which base64 encoding is expected

Open rhcarvalho opened this issue 4 years ago • 0 comments

RFC 4648 defines a standard base64 encoding, and an alternate encoding that is typically used in URLs and file names.

These are the alphabets in each:

const encodeStd = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
const encodeURL = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"

The spec should define clearly what set of 64 characters are expected.

The lack of padding is also part of the RFC, so could be referred to in the docs -- https://www.rfc-editor.org/rfc/rfc4648.html#section-3.2

rhcarvalho avatar Aug 26 '21 15:08 rhcarvalho