AuditLogCtx extends the parent context with additional audit fields
(parent context.Context, additionalAuditFields map[string]any)
| 236 | |
| 237 | // AuditLogCtx extends the parent context with additional audit fields |
| 238 | func AuditLogCtx(parent context.Context, additionalAuditFields map[string]any) context.Context { |
| 239 | newCtx := getLogCtx(parent) |
| 240 | newCtx.RequestAdditionalAuditFields = additionalAuditFields |
| 241 | return LogContextWith(parent, &newCtx) |
| 242 | } |
| 243 | |
| 244 | func EffectiveUserIDLogCtx(parent context.Context, domain, userID string) context.Context { |
| 245 | newCtx := getLogCtx(parent) |