Skip to content

Commit

Permalink
Merge 8cd8113 into 0e3313d
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-kingsbury committed Nov 29, 2023
2 parents 0e3313d + 8cd8113 commit 934ba9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resultsdb/messaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,12 @@ def __init__(self, **kwargs):
raise ValueError(f"Missing {attr!r} option for STOMP messaging plugin")

def publish(self, msg):
msg = json.dumps(msg)
# Add telemetry information. This includes an extra key
# traceparent.
TraceContextTextMapPropagator().inject(msg)

msg = json.dumps(msg)

kwargs = dict(body=msg, headers={}, destination=self.destination)

conn = stomp.connect.StompConnection11(**self.connection)
Expand Down

0 comments on commit 934ba9e

Please sign in to comment.