Skip to content

Commit

Permalink
Update Publisher.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
houseofcat committed May 2, 2024
1 parent 46e926b commit f61240b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/HouseofCat.RabbitMQ/Publisher/Publisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ protected async Task ProcessMessagesAsync(ChannelReader<IMessage> channelReader)
message.ParentSpanContext ?? default);

message.Metadata ??= new Metadata();
message.Exchange ??= string.Empty;

// If parent span context is not set, set it to the current span.
if (message.ParentSpanContext == default)
Expand Down

0 comments on commit f61240b

Please sign in to comment.