Skip to content

Commit

Permalink
move to using base64 encoded context
Browse files Browse the repository at this point in the history
  • Loading branch information
veerbia committed Oct 11, 2024
1 parent 26a6361 commit 9a9ce46
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ private static void Inject<TMessageRequest>(SpanContext context, IDictionary mes

if (Tracer.Instance.Settings.IsDataStreamsLegacyHeadersEnabled)
{
var binaryContext = Encoding.UTF8.GetString(encodedBytes);
sb.AppendFormat("\"{0}\":\"{1}\",", DataStreamsPropagationHeaders.PropagationKey, binaryContext);
sb.AppendFormat("\"{0}\":\"{1}\",", DataStreamsPropagationHeaders.PropagationKey, base64EncodedContext);
}
}

Expand Down

0 comments on commit 9a9ce46

Please sign in to comment.