feat(diagnostics): add 4 Cosmos containers (sessions, traces, logs, screenshots) with TTL
This commit is contained in:
parent
f51c352452
commit
dea1521dd5
@ -71,6 +71,11 @@ const CONTAINER_DEFS: Record<string, ContainerConfig> = {
|
||||
feedback: { partitionKeyPath: '/productId' },
|
||||
impersonation_sessions: { partitionKeyPath: '/productId', defaultTtl: 90 * 86400 },
|
||||
changelog: { partitionKeyPath: '/productId' },
|
||||
// Remote Diagnostics (see docs/devops/REMOTE_DIAGNOSTICS_ROADMAP.md)
|
||||
debug_sessions: { partitionKeyPath: '/id', defaultTtl: 7 * 86400 },
|
||||
debug_traces: { partitionKeyPath: '/pk', defaultTtl: 7 * 86400 },
|
||||
debug_logs: { partitionKeyPath: '/pk', defaultTtl: 3 * 86400 },
|
||||
debug_screenshots: { partitionKeyPath: '/sessionId', defaultTtl: 7 * 86400 },
|
||||
};
|
||||
|
||||
export async function initCosmosIfNeeded(): Promise<void> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user