-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HPCC4J-667 DFSClient: Request traceparents should use active span #777
Conversation
Jira Issue: https://hpccsystems.atlassian.net/browse/HPCC4J-667 Jirabot Action Result: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jpmcmu a couple of comments
@@ -109,7 +109,7 @@ private static StreamContext constructStreamContext(FieldDef rd, FieldDef pRd, i | |||
return ctx; | |||
} | |||
|
|||
public static final int DEFAULT_READ_REQUEST_SPAN_BATCH_SIZE = 25; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be reverted
{ | ||
String traceContextHeader = null; | ||
if (span != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor formatting issue
{ | ||
String traceContextHeader = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe getTraceParentHeader will return null if span == null, or invalid. It feels a little cleaner if we change all these call to gettraceparentheader to:
String traceContextHeader = org.hpccsystems.ws.client.utils.Utils.getTraceParentHeader(versionSpan);
{ | ||
String traceContextHeader = null; | ||
if (span != null) { | ||
traceContextHeader = org.hpccsystems.ws.client.utils.Utils.getTraceParentHeader(span); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you noticed an issue where traceparentheader flags were inconsistent , is that still an issue we need to address?
Look into changing the default sampling flag in getTraceParentHeader() to 01 |
…span - Changed RowServiceInputStream to use the active span instead of the top level read span for the traceparent on requests Signed-off-by: James McMullan [email protected]
@rpastrana pushed up code review changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jpmcmu looks fine, we'll tackle the inconsistent sampled flags with this jira: https://hpccsystems.atlassian.net/browse/HPCC4J-668
Jirabot Action Result: |
Signed-off-by: James McMullan [email protected]
Type of change:
Checklist:
Testing: