{ "evidence": { "worker_long_1": { "captured": 1794818184.4672298, "observed": { "at": 1794818182.217382, "phase": "worker_long_1", "alerts": [ { "labels": { "alertname": "ReadyBurnRateFast", "severity": "warning", "slo": "ready" }, "annotations": { "runbook": "infra/otel/RUNBOOK.md", "summary": "ready SLO budget burning above 6x" }, "state": "pending", "activeAt": "2026-11-16T08:36:04.758725496Z", "value": "1e+00" }, { "labels": { "alertname": "ReadyBurnRateSlow", "severity": "warning", "slo": "ready" }, "annotations": { "runbook": "infra/otel/RUNBOOK.md", "summary": "ready SLO budget burning above 3x" }, "state": "pending", "activeAt": "2026-11-16T08:36:04.758725496Z", "value": "3.5714285714285715e-01" }, { "labels": { "alertname": "QueueLag", "severity": "warning" }, "annotations": { "runbook": "infra/otel/RUNBOOK.md", "summary": "Unfinished attachment age exceeds 30s" }, "state": "firing", "activeAt": "2026-11-16T08:35:49.758725496Z", "value": "5.9309107e+01" } ], "pending": 33.0, "db_lock_waiting": 0.0, "queue_age": 64.524647, "api_burn": 0.0, "ready_burn": 100.0 }, "worker_received_events": 0, "accepted_upload_events": 35, "diagnosis": "Queue age and ready burn increase while API accepts uploads and no worker consumption is observed" }, "worker_recovery_1": { "captured": 1794818374.986302, "trace_id": "87ebd5bd431e611a386af21794ac2f47", "spans": [ { "service": "messenger-api", "name": "POST /api/v1/chats/{chat_id}/attachments", "kind": "SPAN_KIND_SERVER", "span_id": "tz0NsiHCttw=", "parent_span_id": null, "duration_ms": 18.956916, "status": {} }, { "service": "messenger-api", "name": "auth.VerifySession", "kind": "SPAN_KIND_INTERNAL", "span_id": "gELX57+vTkk=", "parent_span_id": "tz0NsiHCttw=", "duration_ms": 0.638041, "status": {} }, { "service": "messenger-api", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "D+jkhtupYPg=", "parent_span_id": "gELX57+vTkk=", "duration_ms": 0.335334, "status": {} }, { "service": "messenger-api", "name": "auth.validateStoredSession", "kind": "SPAN_KIND_INTERNAL", "span_id": "p5gFc8iJZHQ=", "parent_span_id": "gELX57+vTkk=", "duration_ms": 0.003334, "status": {} }, { "service": "messenger-api", "name": "attachment.upload", "kind": "SPAN_KIND_INTERNAL", "span_id": "jB0/2W4MDhw=", "parent_span_id": "tz0NsiHCttw=", "duration_ms": 18.209625, "status": {} }, { "service": "messenger-api", "name": "chat.GetForMember", "kind": "SPAN_KIND_INTERNAL", "span_id": "nGwUSRk5LnA=", "parent_span_id": "jB0/2W4MDhw=", "duration_ms": 0.210417, "status": {} }, { "service": "messenger-api", "name": "chat.cachedChat", "kind": "SPAN_KIND_INTERNAL", "span_id": "j3dUIQf4eWA=", "parent_span_id": "nGwUSRk5LnA=", "duration_ms": 0.201917, "status": {} }, { "service": "messenger-api", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "U5n5YN7gaSE=", "parent_span_id": "jB0/2W4MDhw=", "duration_ms": 0.168542, "status": {} }, { "service": "messenger-api", "name": "s3.put", "kind": "SPAN_KIND_CLIENT", "span_id": "vy0IHJh/3iY=", "parent_span_id": "jB0/2W4MDhw=", "duration_ms": 5.372708, "status": {} }, { "service": "messenger-api", "name": "postgresql BEGIN", "kind": "SPAN_KIND_CLIENT", "span_id": "2i2vmcn9EE0=", "parent_span_id": "jB0/2W4MDhw=", "duration_ms": 0.102708, "status": {} }, { "service": "messenger-api", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "T3Dr7iQuvIQ=", "parent_span_id": "jB0/2W4MDhw=", "duration_ms": 0.4535, "status": {} }, { "service": "messenger-api", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "w3sVwhZtutg=", "parent_span_id": "jB0/2W4MDhw=", "duration_ms": 0.147042, "status": {} }, { "service": "messenger-api", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "jLqcbPc5vVk=", "parent_span_id": "jB0/2W4MDhw=", "duration_ms": 0.211042, "status": {} }, { "service": "messenger-api", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "vRHP/KuDBrM=", "parent_span_id": "jB0/2W4MDhw=", "duration_ms": 0.248459, "status": {} }, { "service": "messenger-api", "name": "postgresql COMMIT", "kind": "SPAN_KIND_CLIENT", "span_id": "RRs6tYlWUvQ=", "parent_span_id": "jB0/2W4MDhw=", "duration_ms": 0.422917, "status": {} }, { "service": "messenger-dispatcher", "name": "attachments publish", "kind": "SPAN_KIND_PRODUCER", "span_id": "LNSmERepEgY=", "parent_span_id": "jB0/2W4MDhw=", "duration_ms": 8.300958, "status": {} }, { "service": "messenger-worker", "name": "attachments consume", "kind": "SPAN_KIND_CONSUMER", "span_id": "IvTbWoSGVoE=", "parent_span_id": "LNSmERepEgY=", "duration_ms": 31.394333, "status": {} }, { "service": "messenger-worker", "name": "attachment.process", "kind": "SPAN_KIND_INTERNAL", "span_id": "4tlyqCkXguI=", "parent_span_id": "IvTbWoSGVoE=", "duration_ms": 31.374083, "status": {} }, { "service": "messenger-worker", "name": "postgresql BEGIN", "kind": "SPAN_KIND_CLIENT", "span_id": "Izvr4bX032o=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 0.06025, "status": {} }, { "service": "messenger-worker", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "zFMrsz5K56k=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 0.078375, "status": {} }, { "service": "messenger-worker", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "1Frlsrq2oUE=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 0.075459, "status": {} }, { "service": "messenger-worker", "name": "postgresql UPDATE", "kind": "SPAN_KIND_CLIENT", "span_id": "PfWiD/Xq8zY=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 0.070958, "status": {} }, { "service": "messenger-worker", "name": "postgresql UPDATE", "kind": "SPAN_KIND_CLIENT", "span_id": "FYsBFGWK6dU=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 0.082667, "status": {} }, { "service": "messenger-worker", "name": "postgresql COMMIT", "kind": "SPAN_KIND_CLIENT", "span_id": "KdQxJRcUJIs=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 0.170958, "status": {} }, { "service": "messenger-worker", "name": "s3.get", "kind": "SPAN_KIND_CLIENT", "span_id": "LIlqz9FL5z8=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 0.715417, "status": {} }, { "service": "messenger-worker", "name": "image.transform", "kind": "SPAN_KIND_INTERNAL", "span_id": "xOom63W1sGk=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 20.176666, "status": {} }, { "service": "messenger-worker", "name": "s3.put", "kind": "SPAN_KIND_CLIENT", "span_id": "fwgrCS52cB8=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 1.659, "status": {} }, { "service": "messenger-worker", "name": "s3.put", "kind": "SPAN_KIND_CLIENT", "span_id": "vPvf2s/AvEk=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 1.142, "status": {} }, { "service": "messenger-worker", "name": "s3.put", "kind": "SPAN_KIND_CLIENT", "span_id": "ir1VprbWua0=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 1.498667, "status": {} }, { "service": "messenger-worker", "name": "s3.put", "kind": "SPAN_KIND_CLIENT", "span_id": "L3Dc7HDuWxE=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 1.126917, "status": {} }, { "service": "messenger-worker", "name": "postgresql BEGIN", "kind": "SPAN_KIND_CLIENT", "span_id": "JrHiDoPaSdY=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 0.062458, "status": {} }, { "service": "messenger-worker", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "7lXqP9/QjPc=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 0.09775, "status": {} }, { "service": "messenger-worker", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "0M+RM0MUW84=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 0.131875, "status": {} }, { "service": "messenger-worker", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "B4dOvJxvPNI=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 0.137917, "status": {} }, { "service": "messenger-worker", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "WgHS/xPupz0=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 0.070083, "status": {} }, { "service": "messenger-worker", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "wVzdIKgGGh4=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 0.045916, "status": {} }, { "service": "messenger-worker", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "S113KWQ30yo=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 0.048042, "status": {} }, { "service": "messenger-worker", "name": "postgresql UPDATE", "kind": "SPAN_KIND_CLIENT", "span_id": "5jgU8/Rdz6o=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 0.058, "status": {} }, { "service": "messenger-worker", "name": "postgresql UPDATE", "kind": "SPAN_KIND_CLIENT", "span_id": "+1GTkh/cu7o=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 0.115833, "status": {} }, { "service": "messenger-worker", "name": "postgresql UPDATE", "kind": "SPAN_KIND_CLIENT", "span_id": "JlJYBMU/6sU=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 0.052959, "status": {} }, { "service": "messenger-worker", "name": "postgresql COMMIT", "kind": "SPAN_KIND_CLIENT", "span_id": "NeM1XkL62a0=", "parent_span_id": "4tlyqCkXguI=", "duration_ms": 0.240375, "status": {} } ], "diagnosis": "Worker resumes consumption and publishes S3/DB results" }, "db_long_1": { "captured": 1794819076.086566, "observed": { "at": 1794819070.248044, "phase": "db_long_1", "alerts": [ { "labels": { "alertname": "ApiBurnRateFast", "severity": "warning", "slo": "api" }, "annotations": { "runbook": "infra/otel/RUNBOOK.md", "summary": "api SLO budget burning above 6x" }, "state": "firing", "activeAt": "2026-11-16T08:50:39.758725496Z", "value": "8.669241743836409e-01" }, { "labels": { "alertname": "ApiBurnRateSlow", "severity": "warning", "slo": "api" }, "annotations": { "runbook": "infra/otel/RUNBOOK.md", "summary": "api SLO budget burning above 3x" }, "state": "pending", "activeAt": "2026-11-16T08:50:39.758725496Z", "value": "4.072512647554806e-01" } ], "pending": 1.0, "db_lock_waiting": 20.0, "queue_age": 0.026991, "api_burn": 86.69241743836409, "ready_burn": 0.0 }, "trace_id": "70b67102a6f3d7ee869684371ce298e4", "spans": [ { "service": "messenger-api", "name": "GET /api/v1/chats/{chat_id}/messages", "kind": "SPAN_KIND_SERVER", "span_id": "l4LW33+CV8U=", "parent_span_id": null, "duration_ms": 2004.636376, "status": { "message": "server_error", "code": "STATUS_CODE_ERROR" } }, { "service": "messenger-api", "name": "chat.ListForChat", "kind": "SPAN_KIND_INTERNAL", "span_id": "FQlPCLoE8vo=", "parent_span_id": "l4LW33+CV8U=", "duration_ms": 1995.711834, "status": {} }, { "service": "messenger-api", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "tTpmp+AqbYg=", "parent_span_id": "FQlPCLoE8vo=", "duration_ms": 1995.446126, "status": { "message": "operation_failed", "code": "STATUS_CODE_ERROR" } }, { "service": "messenger-api", "name": "auth.VerifySession", "kind": "SPAN_KIND_INTERNAL", "span_id": "UKhXjQIOvRo=", "parent_span_id": "l4LW33+CV8U=", "duration_ms": 8.668708, "status": {} }, { "service": "messenger-api", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "Tc5NlVoaWJY=", "parent_span_id": "UKhXjQIOvRo=", "duration_ms": 1.714875, "status": {} }, { "service": "messenger-api", "name": "auth.validateStoredSession", "kind": "SPAN_KIND_INTERNAL", "span_id": "C8ovABCKlJg=", "parent_span_id": "UKhXjQIOvRo=", "duration_ms": 0.003292, "status": {} }, { "service": "messenger-api", "name": "chat.GetForMember", "kind": "SPAN_KIND_INTERNAL", "span_id": "KBOMYXXvers=", "parent_span_id": "FQlPCLoE8vo=", "duration_ms": 0.217958, "status": {} }, { "service": "messenger-api", "name": "chat.cachedChat", "kind": "SPAN_KIND_INTERNAL", "span_id": "gAtGRRQt9jc=", "parent_span_id": "KBOMYXXvers=", "duration_ms": 0.21, "status": {} } ], "error_log_events": 100, "diagnosis": "DB wait dominates server span; HTTP 5xx, not image processing" }, "worker_long_2": { "captured": 1794820117.7003589, "observed": { "at": 1794820114.816596, "phase": "worker_long_2", "alerts": [ { "labels": { "alertname": "ReadyBurnRateFast", "severity": "warning", "slo": "ready" }, "annotations": { "runbook": "infra/otel/RUNBOOK.md", "summary": "ready SLO budget burning above 6x" }, "state": "pending", "activeAt": "2026-11-16T09:08:14.758725496Z", "value": "1e+00" }, { "labels": { "alertname": "ReadyBurnRateSlow", "severity": "warning", "slo": "ready" }, "annotations": { "runbook": "infra/otel/RUNBOOK.md", "summary": "ready SLO budget burning above 3x" }, "state": "pending", "activeAt": "2026-11-16T09:08:14.758725496Z", "value": "3.80952380952381e-01" }, { "labels": { "alertname": "QueueLag", "severity": "warning" }, "annotations": { "runbook": "infra/otel/RUNBOOK.md", "summary": "Unfinished attachment age exceeds 30s" }, "state": "firing", "activeAt": "2026-11-16T09:07:59.758725496Z", "value": "6.1957976e+01" } ], "pending": 34.0, "db_lock_waiting": 0.0, "queue_age": 67.099234, "api_burn": 0.0, "ready_burn": 100.0 }, "worker_received_events": 0, "accepted_upload_events": 36, "diagnosis": "Queue age and ready burn increase while API accepts uploads and no worker consumption is observed" }, "worker_recovery_2": { "captured": 1794820303.223746, "trace_id": "330cb47d547a48641c18b3585d67ac72", "spans": [ { "service": "messenger-api", "name": "POST /api/v1/chats/{chat_id}/attachments", "kind": "SPAN_KIND_SERVER", "span_id": "k/gMZFk1iaE=", "parent_span_id": null, "duration_ms": 16.477959, "status": {} }, { "service": "messenger-api", "name": "auth.VerifySession", "kind": "SPAN_KIND_INTERNAL", "span_id": "J3VpnmW6ENA=", "parent_span_id": "k/gMZFk1iaE=", "duration_ms": 0.598792, "status": {} }, { "service": "messenger-api", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "ov7Xujq7i7U=", "parent_span_id": "J3VpnmW6ENA=", "duration_ms": 0.448584, "status": {} }, { "service": "messenger-api", "name": "auth.validateStoredSession", "kind": "SPAN_KIND_INTERNAL", "span_id": "C8q0/ZrIe/4=", "parent_span_id": "J3VpnmW6ENA=", "duration_ms": 0.004, "status": {} }, { "service": "messenger-api", "name": "attachment.upload", "kind": "SPAN_KIND_INTERNAL", "span_id": "wcpec0H5X1g=", "parent_span_id": "k/gMZFk1iaE=", "duration_ms": 15.75775, "status": {} }, { "service": "messenger-api", "name": "chat.GetForMember", "kind": "SPAN_KIND_INTERNAL", "span_id": "rDQHGB0JB6o=", "parent_span_id": "wcpec0H5X1g=", "duration_ms": 0.440792, "status": {} }, { "service": "messenger-api", "name": "chat.cachedChat", "kind": "SPAN_KIND_INTERNAL", "span_id": "pn5u0G3Ll7Y=", "parent_span_id": "rDQHGB0JB6o=", "duration_ms": 0.392958, "status": {} }, { "service": "messenger-api", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "8JJI9w/pVGQ=", "parent_span_id": "wcpec0H5X1g=", "duration_ms": 0.204875, "status": {} }, { "service": "messenger-api", "name": "s3.put", "kind": "SPAN_KIND_CLIENT", "span_id": "lOtQ3UnY3j4=", "parent_span_id": "wcpec0H5X1g=", "duration_ms": 3.791291, "status": {} }, { "service": "messenger-api", "name": "postgresql BEGIN", "kind": "SPAN_KIND_CLIENT", "span_id": "WjoYRErEAJE=", "parent_span_id": "wcpec0H5X1g=", "duration_ms": 0.133209, "status": {} }, { "service": "messenger-api", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "vjTSfMzkxdY=", "parent_span_id": "wcpec0H5X1g=", "duration_ms": 0.494125, "status": {} }, { "service": "messenger-api", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "iSlRUK8WnBk=", "parent_span_id": "wcpec0H5X1g=", "duration_ms": 0.224916, "status": {} }, { "service": "messenger-api", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "gB0niK2Bqdc=", "parent_span_id": "wcpec0H5X1g=", "duration_ms": 0.286167, "status": {} }, { "service": "messenger-api", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "AxJsDmtC51U=", "parent_span_id": "wcpec0H5X1g=", "duration_ms": 0.355041, "status": {} }, { "service": "messenger-api", "name": "postgresql COMMIT", "kind": "SPAN_KIND_CLIENT", "span_id": "/ZJ+mkhNErk=", "parent_span_id": "wcpec0H5X1g=", "duration_ms": 0.574, "status": {} }, { "service": "messenger-dispatcher", "name": "attachments publish", "kind": "SPAN_KIND_PRODUCER", "span_id": "5+Cb1uWFrpE=", "parent_span_id": "wcpec0H5X1g=", "duration_ms": 4.772875, "status": {} }, { "service": "messenger-worker", "name": "attachments consume", "kind": "SPAN_KIND_CONSUMER", "span_id": "4cXaN795nBY=", "parent_span_id": "5+Cb1uWFrpE=", "duration_ms": 72.435459, "status": {} }, { "service": "messenger-worker", "name": "attachment.process", "kind": "SPAN_KIND_INTERNAL", "span_id": "EBDmTXukus8=", "parent_span_id": "4cXaN795nBY=", "duration_ms": 72.412792, "status": {} }, { "service": "messenger-worker", "name": "postgresql BEGIN", "kind": "SPAN_KIND_CLIENT", "span_id": "Qaftqwf3pMA=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 0.056541, "status": {} }, { "service": "messenger-worker", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "vbij5a+7aU0=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 0.082125, "status": {} }, { "service": "messenger-worker", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "BbyE/aQY9Do=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 0.092125, "status": {} }, { "service": "messenger-worker", "name": "postgresql UPDATE", "kind": "SPAN_KIND_CLIENT", "span_id": "kKb22VVz8mA=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 0.09925, "status": {} }, { "service": "messenger-worker", "name": "postgresql UPDATE", "kind": "SPAN_KIND_CLIENT", "span_id": "KIQUjBb56B4=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 0.111541, "status": {} }, { "service": "messenger-worker", "name": "postgresql COMMIT", "kind": "SPAN_KIND_CLIENT", "span_id": "OAIEFOqUexQ=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 0.194417, "status": {} }, { "service": "messenger-worker", "name": "s3.get", "kind": "SPAN_KIND_CLIENT", "span_id": "tFQQx0YRJR0=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 0.872166, "status": {} }, { "service": "messenger-worker", "name": "image.transform", "kind": "SPAN_KIND_INTERNAL", "span_id": "XN/tZ15MVDU=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 61.892666, "status": {} }, { "service": "messenger-worker", "name": "s3.put", "kind": "SPAN_KIND_CLIENT", "span_id": "3IDDcvD0Ie8=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 1.696125, "status": {} }, { "service": "messenger-worker", "name": "s3.put", "kind": "SPAN_KIND_CLIENT", "span_id": "MxYsC1zK4Ak=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 0.778375, "status": {} }, { "service": "messenger-worker", "name": "s3.put", "kind": "SPAN_KIND_CLIENT", "span_id": "t/TDuVclitk=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 0.631208, "status": {} }, { "service": "messenger-worker", "name": "s3.put", "kind": "SPAN_KIND_CLIENT", "span_id": "jBWSxFHarC0=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 1.008625, "status": {} }, { "service": "messenger-worker", "name": "postgresql BEGIN", "kind": "SPAN_KIND_CLIENT", "span_id": "zaNX6x89OG8=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 0.031959, "status": {} }, { "service": "messenger-worker", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "LOKdHjLdseU=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 0.060833, "status": {} }, { "service": "messenger-worker", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "BrvxeG3Bnj0=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 0.053292, "status": {} }, { "service": "messenger-worker", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "/+hO+OZZZTU=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 0.113083, "status": {} }, { "service": "messenger-worker", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "2N0Nv4wQ1KE=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 0.077542, "status": {} }, { "service": "messenger-worker", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "RCiSYYwRIFw=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 0.097958, "status": {} }, { "service": "messenger-worker", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "G97CVA2rxr0=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 0.104417, "status": {} }, { "service": "messenger-worker", "name": "postgresql UPDATE", "kind": "SPAN_KIND_CLIENT", "span_id": "hZkdFAFAg60=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 0.103625, "status": {} }, { "service": "messenger-worker", "name": "postgresql UPDATE", "kind": "SPAN_KIND_CLIENT", "span_id": "4rjobgveC8Q=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 0.14575, "status": {} }, { "service": "messenger-worker", "name": "postgresql UPDATE", "kind": "SPAN_KIND_CLIENT", "span_id": "UOlESjsLd8o=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 0.089375, "status": {} }, { "service": "messenger-worker", "name": "postgresql COMMIT", "kind": "SPAN_KIND_CLIENT", "span_id": "WIZAFfmopB4=", "parent_span_id": "EBDmTXukus8=", "duration_ms": 0.262916, "status": {} } ], "diagnosis": "Worker resumes consumption and publishes S3/DB results" }, "db_long_2": { "captured": 1794821004.6703832, "observed": { "at": 1794821003.013938, "phase": "db_long_2", "alerts": [ { "labels": { "alertname": "ApiBurnRateFast", "severity": "warning", "slo": "api" }, "annotations": { "runbook": "infra/otel/RUNBOOK.md", "summary": "api SLO budget burning above 6x" }, "state": "firing", "activeAt": "2026-11-16T09:22:49.758725496Z", "value": "9.245960502692998e-01" }, { "labels": { "alertname": "ApiBurnRateSlow", "severity": "warning", "slo": "api" }, "annotations": { "runbook": "infra/otel/RUNBOOK.md", "summary": "api SLO budget burning above 3x" }, "state": "firing", "activeAt": "2026-11-16T09:22:49.758725496Z", "value": "4.335016835016835e-01" } ], "pending": 0.0, "db_lock_waiting": 20.0, "queue_age": 0.0, "api_burn": 92.45960502692998, "ready_burn": 0.0 }, "trace_id": "dba5ec05cea91c4f71ef86ea40f5c1d6", "spans": [ { "service": "messenger-api", "name": "GET /api/v1/chats/{chat_id}/messages", "kind": "SPAN_KIND_SERVER", "span_id": "W8DTh3gzEN4=", "parent_span_id": null, "duration_ms": 2000.358335, "status": { "message": "server_error", "code": "STATUS_CODE_ERROR" } }, { "service": "messenger-api", "name": "chat.ListForChat", "kind": "SPAN_KIND_INTERNAL", "span_id": "NgHeWhn4j8A=", "parent_span_id": "W8DTh3gzEN4=", "duration_ms": 1999.084626, "status": {} }, { "service": "messenger-api", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "Y03GQ6O63PQ=", "parent_span_id": "NgHeWhn4j8A=", "duration_ms": 1998.919459, "status": { "message": "operation_failed", "code": "STATUS_CODE_ERROR" } }, { "service": "messenger-api", "name": "auth.VerifySession", "kind": "SPAN_KIND_INTERNAL", "span_id": "XZlAv4egFP8=", "parent_span_id": "W8DTh3gzEN4=", "duration_ms": 1.182416, "status": {} }, { "service": "messenger-api", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "Tt2/p7PJ7Ec=", "parent_span_id": "XZlAv4egFP8=", "duration_ms": 1.085709, "status": {} }, { "service": "messenger-api", "name": "auth.validateStoredSession", "kind": "SPAN_KIND_INTERNAL", "span_id": "/82g86zbTBI=", "parent_span_id": "XZlAv4egFP8=", "duration_ms": 0.003, "status": {} }, { "service": "messenger-api", "name": "chat.GetForMember", "kind": "SPAN_KIND_INTERNAL", "span_id": "fnLz8ACRdIQ=", "parent_span_id": "NgHeWhn4j8A=", "duration_ms": 0.145042, "status": {} }, { "service": "messenger-api", "name": "chat.cachedChat", "kind": "SPAN_KIND_INTERNAL", "span_id": "cwM1CvmO6Lw=", "parent_span_id": "fnLz8ACRdIQ=", "duration_ms": 0.137792, "status": {} } ], "error_log_events": 100, "diagnosis": "DB wait dominates server span; HTTP 5xx, not image processing" }, "worker_long_3": { "captured": 1794822046.653913, "observed": { "at": 1794822039.5664508, "phase": "worker_long_3", "alerts": [ { "labels": { "alertname": "ReadyBurnRateFast", "severity": "warning", "slo": "ready" }, "annotations": { "runbook": "infra/otel/RUNBOOK.md", "summary": "ready SLO budget burning above 6x" }, "state": "pending", "activeAt": "2026-11-16T09:40:24.758725496Z", "value": "1e+00" }, { "labels": { "alertname": "ReadyBurnRateSlow", "severity": "warning", "slo": "ready" }, "annotations": { "runbook": "infra/otel/RUNBOOK.md", "summary": "ready SLO budget burning above 3x" }, "state": "pending", "activeAt": "2026-11-16T09:40:29.758725496Z", "value": "3.0952380952380953e-01" }, { "labels": { "alertname": "QueueLag", "severity": "warning" }, "annotations": { "runbook": "infra/otel/RUNBOOK.md", "summary": "Unfinished attachment age exceeds 30s" }, "state": "firing", "activeAt": "2026-11-16T09:40:09.758725496Z", "value": "5.543069e+01" } ], "pending": 31.0, "db_lock_waiting": 0.0, "queue_age": 60.215234, "api_burn": 0.0, "ready_burn": 100.0 }, "worker_received_events": 0, "accepted_upload_events": 34, "diagnosis": "Queue age and ready burn increase while API accepts uploads and no worker consumption is observed" }, "worker_recovery_3": { "captured": 1794822237.1867661, "trace_id": "fc776e4ce81ed1e4bec2a01ddbf3cb0d", "spans": [ { "service": "messenger-api", "name": "POST /api/v1/chats/{chat_id}/attachments", "kind": "SPAN_KIND_SERVER", "span_id": "7TDhdOt3JWE=", "parent_span_id": null, "duration_ms": 15.748125, "status": {} }, { "service": "messenger-api", "name": "auth.VerifySession", "kind": "SPAN_KIND_INTERNAL", "span_id": "Y09nMtaHj3A=", "parent_span_id": "7TDhdOt3JWE=", "duration_ms": 0.944875, "status": {} }, { "service": "messenger-api", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "wA3Tp2tq28w=", "parent_span_id": "Y09nMtaHj3A=", "duration_ms": 0.553167, "status": {} }, { "service": "messenger-api", "name": "auth.validateStoredSession", "kind": "SPAN_KIND_INTERNAL", "span_id": "Ti2CzIJpy2s=", "parent_span_id": "Y09nMtaHj3A=", "duration_ms": 0.004667, "status": {} }, { "service": "messenger-api", "name": "attachment.upload", "kind": "SPAN_KIND_INTERNAL", "span_id": "WK1gaBFFVuE=", "parent_span_id": "7TDhdOt3JWE=", "duration_ms": 14.667834, "status": {} }, { "service": "messenger-api", "name": "chat.GetForMember", "kind": "SPAN_KIND_INTERNAL", "span_id": "CinB8l5DWyA=", "parent_span_id": "WK1gaBFFVuE=", "duration_ms": 0.207042, "status": {} }, { "service": "messenger-api", "name": "chat.cachedChat", "kind": "SPAN_KIND_INTERNAL", "span_id": "MPLNDjPFTGs=", "parent_span_id": "CinB8l5DWyA=", "duration_ms": 0.195583, "status": {} }, { "service": "messenger-api", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "gLAsHguQKJs=", "parent_span_id": "WK1gaBFFVuE=", "duration_ms": 0.176125, "status": {} }, { "service": "messenger-api", "name": "s3.put", "kind": "SPAN_KIND_CLIENT", "span_id": "slPqX/PjJvc=", "parent_span_id": "WK1gaBFFVuE=", "duration_ms": 3.282292, "status": {} }, { "service": "messenger-api", "name": "postgresql BEGIN", "kind": "SPAN_KIND_CLIENT", "span_id": "aWLEza5FoNc=", "parent_span_id": "WK1gaBFFVuE=", "duration_ms": 0.18775, "status": {} }, { "service": "messenger-api", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "cwSwxxVuG+o=", "parent_span_id": "WK1gaBFFVuE=", "duration_ms": 0.356625, "status": {} }, { "service": "messenger-api", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "h3XnJ6fEaP8=", "parent_span_id": "WK1gaBFFVuE=", "duration_ms": 0.142208, "status": {} }, { "service": "messenger-api", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "GOSwmhBifjA=", "parent_span_id": "WK1gaBFFVuE=", "duration_ms": 0.215291, "status": {} }, { "service": "messenger-api", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "BZIl8s0D6Ko=", "parent_span_id": "WK1gaBFFVuE=", "duration_ms": 0.6495, "status": {} }, { "service": "messenger-api", "name": "postgresql COMMIT", "kind": "SPAN_KIND_CLIENT", "span_id": "Ucj2+IHycyk=", "parent_span_id": "WK1gaBFFVuE=", "duration_ms": 1.128209, "status": {} }, { "service": "messenger-dispatcher", "name": "attachments publish", "kind": "SPAN_KIND_PRODUCER", "span_id": "TUTjKL0aoQw=", "parent_span_id": "WK1gaBFFVuE=", "duration_ms": 3.255125, "status": {} }, { "service": "messenger-worker", "name": "attachments consume", "kind": "SPAN_KIND_CONSUMER", "span_id": "RLDGQG6V4n0=", "parent_span_id": "TUTjKL0aoQw=", "duration_ms": 34.185083, "status": {} }, { "service": "messenger-worker", "name": "attachment.process", "kind": "SPAN_KIND_INTERNAL", "span_id": "Pn1t6GmqDek=", "parent_span_id": "RLDGQG6V4n0=", "duration_ms": 34.163542, "status": {} }, { "service": "messenger-worker", "name": "postgresql BEGIN", "kind": "SPAN_KIND_CLIENT", "span_id": "MmRYJySAS28=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 0.090458, "status": {} }, { "service": "messenger-worker", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "vA1/uiZwbWI=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 0.094834, "status": {} }, { "service": "messenger-worker", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "2tkz18ZRkSQ=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 0.087292, "status": {} }, { "service": "messenger-worker", "name": "postgresql UPDATE", "kind": "SPAN_KIND_CLIENT", "span_id": "SxxMfEhz9NQ=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 0.081292, "status": {} }, { "service": "messenger-worker", "name": "postgresql UPDATE", "kind": "SPAN_KIND_CLIENT", "span_id": "YDxvts+aBr0=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 0.09875, "status": {} }, { "service": "messenger-worker", "name": "postgresql COMMIT", "kind": "SPAN_KIND_CLIENT", "span_id": "WsgKZ0xgywo=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 0.191625, "status": {} }, { "service": "messenger-worker", "name": "s3.get", "kind": "SPAN_KIND_CLIENT", "span_id": "2LYtJzkun6k=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 0.961208, "status": {} }, { "service": "messenger-worker", "name": "image.transform", "kind": "SPAN_KIND_INTERNAL", "span_id": "TQoQle9dCjU=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 22.377, "status": {} }, { "service": "messenger-worker", "name": "s3.put", "kind": "SPAN_KIND_CLIENT", "span_id": "hBZvR/WFYNU=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 2.531291, "status": {} }, { "service": "messenger-worker", "name": "s3.put", "kind": "SPAN_KIND_CLIENT", "span_id": "KofZ6u0pSUs=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 1.005625, "status": {} }, { "service": "messenger-worker", "name": "s3.put", "kind": "SPAN_KIND_CLIENT", "span_id": "ZdCSweVtcaE=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 1.100958, "status": {} }, { "service": "messenger-worker", "name": "s3.put", "kind": "SPAN_KIND_CLIENT", "span_id": "avO/NoIryEM=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 0.817125, "status": {} }, { "service": "messenger-worker", "name": "postgresql BEGIN", "kind": "SPAN_KIND_CLIENT", "span_id": "nQAVTXQSYQw=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 0.08125, "status": {} }, { "service": "messenger-worker", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "QJpJIT3r0n4=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 0.113333, "status": {} }, { "service": "messenger-worker", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "DIFxbHI1mCM=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 0.079125, "status": {} }, { "service": "messenger-worker", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "NTder7igcDg=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 0.099167, "status": {} }, { "service": "messenger-worker", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "Pw1J28uULFc=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 0.0895, "status": {} }, { "service": "messenger-worker", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "pfmXdAen7Lk=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 0.054375, "status": {} }, { "service": "messenger-worker", "name": "postgresql INSERT", "kind": "SPAN_KIND_CLIENT", "span_id": "NpXP0D72q7k=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 0.045, "status": {} }, { "service": "messenger-worker", "name": "postgresql UPDATE", "kind": "SPAN_KIND_CLIENT", "span_id": "XyU72PKv/1o=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 0.06825, "status": {} }, { "service": "messenger-worker", "name": "postgresql UPDATE", "kind": "SPAN_KIND_CLIENT", "span_id": "u2/4v+rFM4g=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 0.112833, "status": {} }, { "service": "messenger-worker", "name": "postgresql UPDATE", "kind": "SPAN_KIND_CLIENT", "span_id": "PfO4wiFa5xY=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 0.116083, "status": {} }, { "service": "messenger-worker", "name": "postgresql COMMIT", "kind": "SPAN_KIND_CLIENT", "span_id": "xMZGbigLVN4=", "parent_span_id": "Pn1t6GmqDek=", "duration_ms": 0.255875, "status": {} } ], "diagnosis": "Worker resumes consumption and publishes S3/DB results" }, "db_long_3": { "captured": 1794822938.670801, "observed": { "at": 1794822934.982975, "phase": "db_long_3", "alerts": [ { "labels": { "alertname": "ApiBurnRateFast", "severity": "warning", "slo": "api" }, "annotations": { "runbook": "infra/otel/RUNBOOK.md", "summary": "api SLO budget burning above 6x" }, "state": "firing", "activeAt": "2026-11-16T09:54:59.758725496Z", "value": "9.529616724738676e-01" }, { "labels": { "alertname": "ApiBurnRateSlow", "severity": "warning", "slo": "api" }, "annotations": { "runbook": "infra/otel/RUNBOOK.md", "summary": "api SLO budget burning above 3x" }, "state": "firing", "activeAt": "2026-11-16T09:54:59.758725496Z", "value": "4.6043771043771037e-01" } ], "pending": 0.0, "db_lock_waiting": 20.0, "queue_age": 0.0, "api_burn": 95.29616724738676, "ready_burn": 0.0 }, "trace_id": "41c627868dc842ca5fc041495bc21a04", "spans": [ { "service": "messenger-api", "name": "GET /api/v1/chats/{chat_id}/messages", "kind": "SPAN_KIND_SERVER", "span_id": "uzhM6DftApw=", "parent_span_id": null, "duration_ms": 2001.004543, "status": { "message": "server_error", "code": "STATUS_CODE_ERROR" } }, { "service": "messenger-api", "name": "chat.ListForChat", "kind": "SPAN_KIND_INTERNAL", "span_id": "54LdqkseDrI=", "parent_span_id": "uzhM6DftApw=", "duration_ms": 1997.504459, "status": {} }, { "service": "messenger-api", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "6UWBiEmdS04=", "parent_span_id": "54LdqkseDrI=", "duration_ms": 1997.362043, "status": { "message": "operation_failed", "code": "STATUS_CODE_ERROR" } }, { "service": "messenger-api", "name": "auth.VerifySession", "kind": "SPAN_KIND_INTERNAL", "span_id": "24sh8rlWUcs=", "parent_span_id": "uzhM6DftApw=", "duration_ms": 3.384833, "status": {} }, { "service": "messenger-api", "name": "postgresql SELECT", "kind": "SPAN_KIND_CLIENT", "span_id": "3CinSlCF1os=", "parent_span_id": "24sh8rlWUcs=", "duration_ms": 0.878083, "status": {} }, { "service": "messenger-api", "name": "auth.validateStoredSession", "kind": "SPAN_KIND_INTERNAL", "span_id": "RNEb85RT04M=", "parent_span_id": "24sh8rlWUcs=", "duration_ms": 0.00275, "status": {} }, { "service": "messenger-api", "name": "chat.GetForMember", "kind": "SPAN_KIND_INTERNAL", "span_id": "0Sxa6sK/ELY=", "parent_span_id": "54LdqkseDrI=", "duration_ms": 0.125083, "status": {} }, { "service": "messenger-api", "name": "chat.cachedChat", "kind": "SPAN_KIND_INTERNAL", "span_id": "SJYElvHcN5w=", "parent_span_id": "0Sxa6sK/ELY=", "duration_ms": 0.119375, "status": {} } ], "error_log_events": 100, "diagnosis": "DB wait dominates server span; HTTP 5xx, not image processing" } }, "collection_errors": [] }