You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When receiving B3 propagation http headers they can be lowercase like "x-b3-traceid" but petabridge check this key as case sensitive uppercase . (linkerd can changes these headers to lowercase which http headers are lowercase by default)
internalconststringB3TraceId="X-B3-TraceId";internalconststringB3SpanId="X-B3-SpanId";internalconststringB3ParentId="X-B3-ParentSpanId";
......
public ApplicationInsightsSpanContext Extract(ITextMapcarrier){string traceId =null;string spanId =null;string parentId =null;foreach(var entry incarrier)
switch (entry.Key){case B3TraceId:traceId= entry.Value;break;case B3SpanId:spanId= entry.Value;break;case B3ParentId:parentId= entry.Value;break;}if(traceId !=null&& spanId !=null)// don't care of ParentId is null or notreturnnew ApplicationInsightsSpanContext(traceId, spanId, parentId);returnnull;}
The text was updated successfully, but these errors were encountered:
Hello,
When receiving B3 propagation http headers they can be lowercase like "x-b3-traceid" but petabridge check this key as case sensitive uppercase . (linkerd can changes these headers to lowercase which http headers are lowercase by default)
The text was updated successfully, but these errors were encountered: