forked from mtusi2026/mtusi2026lab6
Реализовать observability для лабораторной 6
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user