Skip to content

Commit

Permalink
fix header extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaspimentel committed Dec 19, 2024
1 parent cfe24af commit 39141a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ private static async Task<string> ExtractHeaders(HttpRequest request)
.GroupBy(kvp => kvp[0].ToString(), kvp => kvp[1].ToString())
.ToDictionary(g => g.Key, g => g.ToList());

var extractedContext = SpanContextExtractor.Extract(headers, (dict, key) => dict[key]);
var extractedContext = SpanContextExtractor.Extract(headers, (dict, key) => dict.GetValueOrDefault(key) ?? []);

if (extractedContext is not null)
{
Expand Down

0 comments on commit 39141a9

Please sign in to comment.