Реализовать observability для лабораторной 6

This commit is contained in:
2026-11-20 17:55:23 +03:00
parent 58f3d4c457
commit 9e6428de05
50 changed files with 3573 additions and 98 deletions
+4
View File
@@ -89,6 +89,8 @@ class AttachmentRepository:
height: int,
max_attempts: int,
now: datetime,
traceparent: str | None = None,
tracestate: str | None = None,
) -> Attachment:
row = AttachmentRow(
id=attachment_id,
@@ -128,6 +130,8 @@ class AttachmentRepository:
event_type='attachment.process.v1',
job_id=job_id,
payload=job_payload(job_id, attachment_id, 1, 1, now),
traceparent=traceparent,
tracestate=tracestate,
available_at=now,
published_at=None,
claim_owner=None,