export function getPingHeaders()

in glean/src/core/pings/maker.ts [54:68]


export function getPingHeaders(): Record<string, string> | undefined {
  const headers: Record<string, string> = {};

  if (Context.config.debugViewTag) {
    headers["X-Debug-ID"] = Context.config.debugViewTag;
  }

  if (Context.config.sourceTags) {
    headers["X-Source-Tags"] = Context.config.sourceTags.toString();
  }

  if (Object.keys(headers).length > 0) {
    return headers;
  }
}