Skip to content

feat: [Internal] client-side metrics for afe latency and connectivity error #3819

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

Merged
merged 7 commits into from
Apr 23, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rebase
  • Loading branch information
surbhigarg92 committed Apr 22, 2025
commit 0f9c7f8a7e2719ce104592b15092557c5c345c18
Original file line number Diff line number Diff line change
Expand Up @@ -1997,6 +1997,9 @@ private GrpcCallContext createBaseCallContext() {
if (endToEndTracingEnabled) {
context = context.withExtraHeaders(metadataProvider.newEndToEndTracingHeader());
}
if (isEnableAFEServerTiming()) {
context = context.withExtraHeaders(metadataProvider.newAfeServerTimingHeader());
}
return context
.withStreamWaitTimeoutDuration(waitTimeout)
.withStreamIdleTimeoutDuration(idleTimeout);
Expand Down Expand Up @@ -2047,12 +2050,6 @@ <ReqT, RespT> GrpcCallContext newCallContext(
if (routeToLeader && leaderAwareRoutingEnabled) {
context = context.withExtraHeaders(metadataProvider.newRouteToLeaderHeader());
}
if (endToEndTracingEnabled) {
context = context.withExtraHeaders(metadataProvider.newEndToEndTracingHeader());
}
if (isEnableAFEServerTiming()) {
context = context.withExtraHeaders(metadataProvider.newAfeServerTimingHeader());
}
if (callCredentialsProvider != null) {
CallCredentials callCredentials = callCredentialsProvider.getCallCredentials();
if (callCredentials != null) {
Expand Down