forked from mtusi2026/mtusi2026lab7
Grade 4
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ def handle(sessions, client, message_id, fields):
|
||||
acknowledge(client, message_id)
|
||||
return
|
||||
with otel.span('attachment-jobs process', kind=otel.SpanKind.CONSUMER,
|
||||
context=otel.propagator.extract(message), attributes={
|
||||
context=otel.extract(message), attributes={
|
||||
'messaging.system': 'redis', 'messaging.destination.name': STREAM,
|
||||
'messaging.operation.type': 'process', 'job.attempt': message.get('attempt', 0)}):
|
||||
process_message(sessions, client, message_id, message)
|
||||
|
||||
Reference in New Issue
Block a user