Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Inject() [1/2]

override void System.Diagnostics.PassThroughPropagator.Inject ( Activity activity,
object carrier,
PropagatorSetterCallback setter )
inline

Definition at line 13 of file PassThroughPropagator.cs.

14 {
15 if (setter == null)
16 {
17 return;
18 }
20 if (parentId != null)
21 {
22 setter(carrier, isW3c ? "traceparent" : "Request-Id", parentId);
23 if (!string.IsNullOrEmpty(traceState))
24 {
25 setter(carrier, "tracestate", traceState);
26 }
27 if (baggage != null)
28 {
29 DistributedContextPropagator.InjectBaggage(carrier, baggage, setter);
30 }
31 }
32 }
static void GetRootId(out string parentId, out string traceState, out bool isW3c, out IEnumerable< KeyValuePair< string, string > > baggage)

References System.Diagnostics.PassThroughPropagator.GetRootId(), and System.Diagnostics.DistributedContextPropagator.InjectBaggage().