Skip to content

Commit c61a01d

Browse files
Google APIscopybara-github
authored andcommitted
1 parent acb4f89 commit c61a01d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • google/example/endpointsapis/goapp

google/example/endpointsapis/goapp/main.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,11 @@ func report(w http.ResponseWriter, r *http.Request, name string, responseCode in
9595
Time: received.UTC().Format(time.RFC3339),
9696
},
9797
Response: &servicecontrol.Response{
98-
Time: time.Now().UTC().Format(time.RFC3339),
99-
Code: responseCode,
100-
BackendLatency: time.Duration(70) * time.Millisecond,
98+
Time: time.Now().UTC().Format(time.RFC3339),
99+
Code: responseCode,
100+
Headers: map[string]string{
101+
"x-backend-latency": "0.007",
102+
},
101103
},
102104
Destination: &servicecontrol.Peer{
103105
RegionCode: "us-central1",

0 commit comments

Comments
 (0)