diff --git a/pods/stats/src/stats.ts b/pods/stats/src/stats.ts index 46bf6a31fe..1400e1c8a4 100644 --- a/pods/stats/src/stats.ts +++ b/pods/stats/src/stats.ts @@ -172,7 +172,7 @@ export function serveStats (ctx: MeasureContext, onClose?: () => void): void { const service = payload.extra?.service === 'true' const serviceName = (req.query.name as string) ?? '' if (service) { - ctx.info('put stats', { service: req.query.name }) + ctx.info('put stats', { service: req.query.name, len: req.request.length }) statistics.set(serviceName, { ...(req.request.body as ServiceStatistics), lastUpdate: Date.now() diff --git a/server/backup/src/backup.ts b/server/backup/src/backup.ts index e0c90329f8..6ffe0a5e7f 100644 --- a/server/backup/src/backup.ts +++ b/server/backup/src/backup.ts @@ -701,11 +701,7 @@ export async function backup ( backupSize: 0 } const workspaceId = wsIds.uuid - ctx = ctx.newChild('backup', { - workspaceId, - force: options.force, - timeout: options.timeout - }) + ctx = ctx.newChild('backup', {}) let _canceled = false const canceled = (): boolean => { diff --git a/server/workspace-service/src/service.ts b/server/workspace-service/src/service.ts index 4a4b162a01..2cd3fcbc3c 100644 --- a/server/workspace-service/src/service.ts +++ b/server/workspace-service/src/service.ts @@ -189,7 +189,9 @@ export class WorkspaceWorker { } else { void this.exec(async () => { await ctx - .with('workspaceOperation', {}, (ctx) => this.doWorkspaceOperation(ctx, workspace, opt)) + .with('workspaceOperation', { mode: workspace.mode }, (ctx) => + this.doWorkspaceOperation(ctx, workspace, opt) + ) .catch((err) => { Analytics.handleError(err) ctx.error('error', { err }) diff --git a/services/ai-bot/pod-ai-bot/src/controller.ts b/services/ai-bot/pod-ai-bot/src/controller.ts index 5a5fc6b513..d0007a6571 100644 --- a/services/ai-bot/pod-ai-bot/src/controller.ts +++ b/services/ai-bot/pod-ai-bot/src/controller.ts @@ -152,7 +152,7 @@ export class AIControl { wsIds, this.personUuid, this.socialIds, - this.ctx.newChild(workspace, {}), + this.ctx.newChild('create-workspace', {}), this.openai, this.openaiEncoding, info