-
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-636 DFSClient: Improve Opentelemetry tracing #743
Conversation
Jira Issue: https://hpccsystems.atlassian.net/browse/HPCC4J-636 Jirabot Action Result: |
@rpastrana Example tracing output, bottom screenshot shows attribute arrays for individual requests in the batch. Still looking into request times being incorrect. |
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 pretty good. Left a minor comment about reporting numeric values as strings, simply for presentation purposes
dfsclient/src/main/java/org/hpccsystems/dfs/client/HpccRemoteFileReader.java
Outdated
Show resolved
Hide resolved
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 just a couple of comments
@@ -156,7 +156,7 @@ public HPCCRemoteFileWriter(FileWriteContext ctx, DataPartition dp, IRecordAcces | |||
|
|||
Attributes attributes = Attributes.of( AttributeKey.stringKey("server.0.address"), primaryIP, | |||
AttributeKey.stringKey("server.1.address"), secondaryIP, | |||
ServerAttributes.SERVER_PORT, Long.valueOf(dp.getPort())); | |||
AttributeKey.stringKey("server.port"), "" + dp.getPort()); |
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.
unless this approach performs better, we should use explicit functionality like String.valueOf()
@@ -865,7 +867,7 @@ private void startNewReadRequestSpan() | |||
readRequestCount++; | |||
|
|||
currentReadRequestEvent = new ReadRequestEvent(); | |||
currentReadRequestEvent.requestTime = System.nanoTime(); | |||
currentReadRequestEvent.requestTime = System.currentTimeMillis(); |
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.
do we know why nano time doesn't work
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 it was getting truncated by something in the OTEL stack
- Improved span names - Transitioned read request events to read spans - Move events to spans for connect, version and close - Added span batch support Signed-off-by: James McMullan [email protected]
@rpastrana Changed string conversion and squashed |
Jirabot Action Result: |
Signed-off-by: James McMullan [email protected]
Type of change:
Checklist:
Testing: