in glean/src/core/pings/maker.ts [297:319]
export function collectAndStorePing(
identifier: string,
ping: CommonPingData,
reason?: string
): void {
const collectedPayload = collectPing(ping, reason);
if (!collectedPayload) {
return;
}
if (Context.config.logPings) {
log(PINGS_MAKER_LOG_TAG, JSON.stringify(collectedPayload, null, 2), LoggingLevel.Info);
}
const headers = getPingHeaders();
Context.pingsDatabase.recordPing(
makePath(identifier, ping),
identifier,
collectedPayload,
headers
);
}