Skip to content

Commit

Permalink
Prevent tag duplicates (#18)
Browse files Browse the repository at this point in the history
Fixes #17
  • Loading branch information
pfab-io authored Apr 19, 2024
1 parent f1b2e30 commit 2b87207
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public override async Task Invoke()
var initialTags = new ActivityTagsCollection();
foreach (var tag in parentActivity.Tags)
{
initialTags.Add(tag.Key, tag.Value);
if (!initialTags.ContainsKey(tag.Key))
initialTags.Add(tag.Key, tag.Value);
}
initialTags["messaging.operation"] = "process";

Expand Down

0 comments on commit 2b87207

Please sign in to comment.