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
{{ message }}
This repository was archived by the owner on Oct 3, 2023. It is now read-only.
<!-- How to determine the start time for this Trace. Any Flow Variable (https://cloud.google.com/apigee/docs/api-platform/reference/variables-reference) ending in '.timestamp' is valid. Default is `Date.now()'-->
<!-- How to determine the end time for this Trace. Any Flow Variable (https://cloud.google.com/apigee/docs/api-platform/reference/variables-reference) ending in '.timestamp' is valid. Default is `Date.now()'-->
<!-- How to determine the start time for this Trace. Any Flow Variable (https://cloud.google.com/apigee/docs/api-platform/reference/variables-reference) ending in '.timestamp' is valid. Default is `Date.now()'-->
<!-- How to determine the end time for this Trace. Any Flow Variable (https://cloud.google.com/apigee/docs/api-platform/reference/variables-reference) ending in '.timestamp' is valid. Default is `Date.now()'-->
// In W3C speak "Parent ID" is only the "Parent's ID" as received in an incoming traceparent header. Once we create a "Span" we become the "Parent ID"- what
39
-
// most would term "the Span ID". `requestParentID` is therefore the incoming Span's ID. This code sticks with W3C terminology for consistency.
55
+
// In W3C speak 'Parent ID' is only the 'Parent's ID' as received in an incoming traceparent header. Once we create a 'Span' we become the 'Parent ID'- what
56
+
// most would term 'the Span ID'. `requestParentID` is therefore the incoming Span's ID. This code sticks with W3C terminology for consistency.
requestParentID="";// New Relic's Trace API expects a null parent.id attribute if this is the root span
64
+
requestParentID='';// New Relic's Trace API expects a null parent.id attribute if this is the root span
48
65
tracestate='';
49
66
}
50
67
@@ -69,13 +86,13 @@ else {
69
86
// The vendor will only parse the trace-flags values supported by this version of this specification and ignore all other values.
70
87
// If parsing fails, the vendor creates a new traceparent header and deletes the tracestate. Vendors will set all unparsed / unknown trace-flags to 0 on outgoing requests.
// If the vendor supports the version number, it validates trace-id and parent-id. If either trace-id, parent-id or trace-flags are invalid, the vendor creates a new traceparent header and deletes tracestate.
// The vendor MAY validate the tracestate header. If the tracestate header cannot be parsed the vendor MAY discard the entire header. Invalid tracestate entries MAY also be discarded.
105
122
varstates=tracestate.split(',');
106
123
if(states.length>32){
107
-
print("Warning: tracestate has too many values: "+states.length);
124
+
logMsg(RlogPrefix+'Warning: tracestate has too many values: '+states.length);
108
125
}
109
126
}
110
127
}
@@ -118,13 +135,20 @@ else {
118
135
119
136
// The vendor sets the traceparent and tracestate header for the outgoing request.
0 commit comments