Permalink
Browse files

Disable protobuffer in/out for urlfetch b/c it's slow

  • Loading branch information...
1 parent 8195b53 commit f1b85d07755da5ab2bab804e09aa6fb3c292c8ab @cmelbye committed May 31, 2014
Showing with 6 additions and 2 deletions.
  1. +6 −2 appstats.go
View
@@ -92,8 +92,12 @@ func (c Context) Call(service, method string, in, out appengine_internal.ProtoMe
}
err := c.Context.Call(service, method, in, out, opts)
stat.Duration = time.Since(stat.Start)
- stat.In = in.String()
- stat.Out = out.String()
+
+ if service != "urlfetch" || method != "Fetch" {
+ stat.In = in.String()
+ stat.Out = out.String()
+ }
+
stat.Cost = GetCost(out)
if len(stat.In) > ProtoMaxBytes {

0 comments on commit f1b85d0

Please sign in to comment.