function parseTraceParent(traceParent) {
  const match = TRACE_PARENT_REGEX.exec(traceParent)
  if (!match) return null

  // According to the specification the implementation should be compatible
  // with future versions. If there are more parts, we only reject it if it's using version 00
  // See https://www.w3.org/TR/trace-context/#versioning-of-traceparent
  if (match[1] === '00' && match[5]) return null

  return {
    traceId: match[2],
    spanId: match[3],
    traceFlags: parseInt(match[4], 16),
  }
}
Parses information from the [traceparent] span tag and converts it into {@link SpanContext}
@param traceParent - A meta property that comes from server.
    It should be dynamically generated server side to have the server's request trace Id,
    a parent span Id that was set on the server's request span,
    and the trace flags to indicate the server's sampling decision
    (01 = sampled, 00 = not sampled).
    for example: '{version}-{traceId}-{spanId}-{sampleDecision}'
    For more information see {@link https://www.w3.org/TR/trace-context/}