Commit Graph

957 Commits

Author SHA1 Message Date
Reed Allman
7ba2dc005e fix debug logger output (#458)
our dear friend mr. funclogger was bypassing calls to our multi writer since
we were embedding a *bytes.Buffer, it was using ReadFrom and WriteString which
would never call the stderr logger's Write method (or, as I learned, other
things trying to wrap that buffer's Write method...).

the tl;dr is many times DEBUG lines don't get spat out, from async tasks
especially (few people using this).

I think the final solution is probably to make funclogger a 'more robust'
interface that we understand instead of trying to minimize it to an
io.ReaderWriterCloser, much like how bytes.Buffer has all kinds of
methods implemented on it, we can implement things like ReadFrom and
WriteString most likely. not a big fan of how things are now (and it's my own
doing) with the readerwritercloser coming from multiple places but meh,
will get to it some day soon, the log stuff will be a pretty hot path.
2017-10-25 16:25:59 +02:00
Nigel Deakin
c6dd66f3ce Send serve_http spans to Prometheus as well. Revamp Grafana dashboard. 2017-10-25 15:22:25 +01:00
CI
d25064f604 functions: 0.3.163 release [skip ci] 2017-10-25 13:08:35 +00:00
Travis Reeder
d30bcb0397 Fix lost error 2017-10-25 14:41:18 +02:00
Travis Reeder
de04562b8e Pushed triggers into start() and end() 2017-10-25 14:14:31 +02:00
Travis Reeder
fb386b2864 Change extenders -> extensions 2017-10-25 14:13:57 +02:00
Travis Reeder
633b26594e minor 2017-10-25 14:13:26 +02:00
Travis Reeder
d080c23981 First draft of modifying RunnerListener to CallListener to get it closer to the action (and named better). 2017-10-25 14:13:25 +02:00
Nigel Deakin
0ddb750eaa Send serve_http spans to Prometheus as well. Revamp Grafana dashboard. 2017-10-25 12:58:08 +01:00
Nigel Deakin
e72cd55a4a Various changes in response to comments 2017-10-23 15:32:50 +01:00
CI
09ba54c6cb functions: 0.3.162 release [skip ci] 2017-10-22 14:47:24 +00:00
Nigel Deakin
02d49ffd93 Run gofmt 2017-10-20 19:04:47 +01:00
Nigel Deakin
39feaf8b69 Send tracing spans to Prometheus 2017-10-20 16:30:19 +01:00
CI
896ed24f44 functions: 0.3.161 release [skip ci] 2017-10-19 22:02:52 +00:00
CI
ed0088f2a5 functions: 0.3.160 release [skip ci] 2017-10-19 21:08:42 +00:00
CI
bc9103883a functions: 0.3.159 release [skip ci] 2017-10-19 19:40:06 +00:00
CI
d95ee8997a functions: 0.3.158 release [skip ci] 2017-10-19 18:36:50 +00:00
CI
bb381ba9f9 functions: 0.3.157 release [skip ci] 2017-10-19 11:53:43 +00:00
CI
2b8693a33f functions: 0.3.156 release [skip ci] 2017-10-18 16:53:36 +00:00
CI
5cf4f0dc05 functions: 0.3.155 release [skip ci] 2017-10-18 12:42:15 +00:00
Reed Allman
5dd4112ee4 omitempty these fields since they can be null (#432) 2017-10-18 14:31:58 +02:00
CI
cd8f036ddf functions: 0.3.154 release [skip ci] 2017-10-17 09:05:03 +00:00
CI
177612c3ba functions: 0.3.153 release [skip ci] 2017-10-12 20:20:41 +00:00
Denis Makogon
ce25adfddb JSON protocol updating (#426)
* JSON protocol updating

 this patch adds HTTP query string into payload (see more TODOs in code)
 adds one more test to verify query

* Fixing FMT
2017-10-12 23:10:21 +03:00
CI
a31bfac3cf functions: 0.3.152 release [skip ci] 2017-10-11 16:27:09 +00:00
CI
3e74368db0 functions: 0.3.151 release [skip ci] 2017-10-11 14:00:50 +00:00
CI
e331f44048 functions: 0.3.150 release [skip ci] 2017-10-10 21:32:09 +00:00
CI
51a9fd9416 functions: 0.3.149 release [skip ci] 2017-10-10 14:35:50 +00:00
CI
da520cdb7c functions: 0.3.148 release [skip ci] 2017-10-10 08:46:56 +00:00
Nigel Deakin
1646d25c01 Merge pull request #396 from fnproject/add_prometheus_metrics
Add Prometheus statistics and an example to showcase them using Grafana
2017-10-10 09:37:28 +01:00
CI
e92dddfc73 functions: 0.3.147 release [skip ci] 2017-10-09 21:54:08 +00:00
CI
ff8f974fbd functions: 0.3.146 release [skip ci] 2017-10-09 21:39:35 +00:00
CI
d656a1521a functions: 0.3.145 release [skip ci] 2017-10-09 19:35:31 +00:00
Reed Allman
467b65ccc8 Merge pull request #364 from fnproject/json-format-new
[FEATURE] JSON hot format
2017-10-09 12:25:03 -07:00
CI
94535df3c0 functions: 0.3.144 release [skip ci] 2017-10-09 18:49:38 +00:00
CI
8f1ae350eb functions: 0.3.143 release [skip ci] 2017-10-08 17:07:54 +00:00
CI
b5c3ad13e2 functions: 0.3.142 release [skip ci] 2017-10-08 17:03:48 +00:00
Denis Makogon
22b5140f56 Do not expect function to set response code 2017-10-07 03:07:21 +03:00
Denis Makogon
e4684096f7 Fmt and docs 2017-10-07 02:59:08 +03:00
Denis Makogon
6141344e5f Error before sending json object if something bad happend with reading a request body 2017-10-07 02:33:43 +03:00
Denis Makogon
6682de4768 Addressing comments 2017-10-07 02:28:56 +03:00
Denis Makogon
e8f317abd4 Addressing more comments
tests do assertion on request data and headers
 doc fixed
2017-10-07 02:24:07 +03:00
Denis Makogon
181ccf54b4 Addressing more comments + tests 2017-10-07 02:11:49 +03:00
Denis Makogon
9f3bfa1005 Read request body and see if it's not empty then decide whether write it or not 2017-10-07 01:24:43 +03:00
Denis Makogon
b4b5302a44 Addressing certain comments from last review 2017-10-07 01:20:53 +03:00
Denis Makogon
de7b4e6067 Returning error instead of writing it to a response writer 2017-10-07 00:52:01 +03:00
Denis Makogon
7dd9b5a4cd We still can write JSON request object in parts
except just copying content from request body to STDIN
  we need to write encoded data,
  so we're using STDIN JSON stream encoder.
2017-10-07 00:43:09 +03:00
Denis Makogon
588d9e523b Do not forget to close request body 2017-10-07 00:43:09 +03:00
Denis Makogon
c2ee67fb21 Revisiting request body processing 2017-10-07 00:43:09 +03:00
Denis Makogon
1f589d641e Let function write headers to a response 2017-10-07 00:43:09 +03:00