track page name

track page name so it can logged to cloudwatch
This commit is contained in:
Carl Nation 2026-06-11 14:01:08 -04:00
parent d4f9c21041
commit dfd805b392
2 changed files with 2 additions and 0 deletions

View file

@ -6,4 +6,5 @@ export const headerKeys = {
TRANSACTION_ID: "X-Transaction-Id",
EON: "X-Enterprise-Order-Number",
LOG_ENABLED: "log-enabled",
PAGE_NAME_TO_LOG: "X-Page-Name-To-Log",
};

View file

@ -69,6 +69,7 @@ export default {
[headerKeys.APPLICATION_NAME]: applicationConfig.APPLICATION_NAME,
[headerKeys.SESSION_SEQUENCE_NUMBER]: getSessionKeyValue(),
[headerKeys.REFERRAL_SEQUENCE_NUMBER]: order?.referralSequenceNumber,
[headerKeys.PAGE_NAME_TO_LOG]: pageNameToLog,
[headerKeys.TRANSACTION_ID]: crypto.randomUUID(),
[headerKeys.EON]: order?.eon,
[headerKeys.LOG_ENABLED]: store.getters.applicationUser?.loggingOption ?? false,