File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1 Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1994,6 +1994,9 @@ private GrpcCallContext createBaseCallContext() {
1994
1994
if (endToEndTracingEnabled ) {
1995
1995
context = context .withExtraHeaders (metadataProvider .newEndToEndTracingHeader ());
1996
1996
}
1997
+ if (isEnableAFEServerTiming ()) {
1998
+ context = context .withExtraHeaders (metadataProvider .newAfeServerTimingHeader ());
1999
+ }
1997
2000
return context
1998
2001
.withStreamWaitTimeoutDuration (waitTimeout )
1999
2002
.withStreamIdleTimeoutDuration (idleTimeout );
@@ -2044,12 +2047,6 @@ <ReqT, RespT> GrpcCallContext newCallContext(
2044
2047
if (routeToLeader && leaderAwareRoutingEnabled ) {
2045
2048
context = context .withExtraHeaders (metadataProvider .newRouteToLeaderHeader ());
2046
2049
}
2047
- if (endToEndTracingEnabled ) {
2048
- context = context .withExtraHeaders (metadataProvider .newEndToEndTracingHeader ());
2049
- }
2050
- if (isEnableAFEServerTiming ()) {
2051
- context = context .withExtraHeaders (metadataProvider .newAfeServerTimingHeader ());
2052
- }
2053
2050
if (callCredentialsProvider != null ) {
2054
2051
CallCredentials callCredentials = callCredentialsProvider .getCallCredentials ();
2055
2052
if (callCredentials != null ) {
You can’t perform that action at this time.
0 commit comments