Skip to content
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

Update trace summary script #6758

Merged
merged 8 commits into from
Jan 25, 2024
Merged

Update trace summary script #6758

merged 8 commits into from
Jan 25, 2024

Conversation

pskiran1
Copy link
Member

@pskiran1 pskiran1 commented Jan 2, 2024

No description provided.

Copy link
Member

@Tabrizian Tabrizian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like still we should be looking for ways to correctly record GRPC WAITREAD or remove this value.

One scenario that I can imagine being confusing for the user is when they compare the value of GRPC infer request in gRPC and HTTP and notice much longer values for gRPC since it takes into account the gaps between the requests as well.

@tanmayv25
Copy link
Contributor

tanmayv25 commented Jan 2, 2024

@pskiran1 Were you able to investigate whether gRPC server allows us to record actual request read time? Similar to libevhtp which allow us to record a timestamp on the first set of bytes, does gRPC have any hooks which can be used to detect the network activity - hence the beginning of a read from the network?

If not, then I would advocate for removing the value as well to avoid any confusion.

@pskiran1
Copy link
Member Author

As we discussed internally, gRPC does not provide a direct hook for recording request read time, and using alternative methods such as interceptors may add latency/overhead to the current server. Therefore, we have decided to remove the GRPC WAITREAD related values in the summary to avoid confusion.

@pskiran1 pskiran1 requested a review from Tabrizian January 22, 2024 11:31
@pskiran1 pskiran1 marked this pull request as ready for review January 22, 2024 11:31
@tanmayv25
Copy link
Contributor

a small change otherwise looks good to me.

@pskiran1 pskiran1 merged commit 30d64af into main Jan 25, 2024
3 checks passed
@pskiran1 pskiran1 deleted the spolisetty_grpc_trace_time branch January 25, 2024 16:23
@Tabrizian
Copy link
Member

@pskiran1 Actually, I realized that you need to remove it from grpc trace recording too.

@Tabrizian
Copy link
Member

std::make_pair("GRPC_WAITREAD_START", TraceManager::CaptureTimestamp()));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants