Commit Graph

155 Commits

Author SHA1 Message Date
Nigel Deakin
dd1cc0f0ce Send tracing spans to Prometheus 2017-10-20 16:35:58 +01:00
Nigel Deakin
b5f655d218 Send tracing spans to Prometheus 2017-10-20 16:35:30 +01:00
Nigel Deakin
85538760e6 Send tracing spans to Prometheus 2017-10-20 16:32:37 +01:00
Nigel Deakin
39feaf8b69 Send tracing spans to Prometheus 2017-10-20 16:30:19 +01:00
Denis Makogon
357de7085a Updating Python hot HTTP/JSON sample (#379)
* Updating Python hot HTTP sample

 - using latest hotfn 0.0.5 release (made life lot easier)

* Updating to latest 0.0.6 release

 What's new?
 - new request data signature: context, data, loop
 - supports event loop (very useful for request body handeler of coroutine type)

* Updating example with respect to recent fdk-python release

* Addressing review comments
2017-10-18 15:32:57 +03:00
Chad Arimura
7dc1d6fb03 Update func.go (#435) 2017-10-18 14:32:34 +02: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
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
Reed Allman
a4de984f79 add fdk-go to main docs (#412)
* add fdk-go to main docs

* add note about using fdk-go to hot example
2017-10-09 14:43:28 -07:00
Nigel Deakin
1c65233db2 Minor tweaks to README 2017-10-09 10:42:44 +01:00
Denis Makogon
8f5ac1ac98 Func example in Python would pushed be later 2017-10-08 13:07:07 +03:00
Denis Makogon
3ae55af392 Adding JSON format validation API tests 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
783490dc79 Addressing certain comments
What's new?
 - better error handling
 - still need to decode JSON from function because we need status code and body
 - prevent request body to be a problem by deferring its close
 - moving examples around: putting http and json samples into one folder
2017-10-07 00:43:07 +03:00
Denis Makogon
ecaa5eefbf Cleaning up code
Getting rid of request url, call id, method: all of them are
 redundant and available through env
2017-10-07 00:43:07 +03:00
amykang2020
b6b9b55ca9 apply/make Travis's json-format branch prototype to work with latest restructured master; added StatusCode to JSONOutput server-function contract 2017-10-07 00:43:07 +03:00
Reed Allman
8a59654582 go vet yourself (#397)
go vet caught some nifty bugs. so fixed those here, and also made it so that
we vet everything from now on since the robots seem to do a better job of
vetting than we have managed to.

also adds gofmt check to circle. could move this to the test.sh script (didn't
want a script calling a script, because $reasons) and it's nice and isolated
in its own little land as it is. side note, changed the script so it runs in
100ms instead of 3s, i think find is a lot faster than go list.

attempted some minor cleanup of various scripts
2017-10-06 08:42:33 -07:00
Nigel Deakin
99bbe834bd Add screenshot 2017-10-05 17:19:42 +01:00
Nigel Deakin
ae31944224 Add Prometheus statistics and an example to showcase them using Grafana 2017-10-05 16:21:31 +01:00
Travis Reeder
3ad99627de Update README.md 2017-10-03 17:30:05 -07:00
Travis Reeder
7d1802425a Fix type 2017-10-02 20:14:51 -07:00
James Jeffrey
c7f3066c75 Update references remove refs to treeder oracle funcy (#376)
* Remove lots of refs to iron and funcy oracle etc..

* more ref replacements

* Replacing more refs. Treeder

* Use Fn not FN
2017-09-29 16:22:15 -07:00
Travis Reeder
5219227393 Updated docs on configuration and required env vars. (#285)
* Updated docs on configuration and required env vars.

* minor
2017-09-29 16:20:46 -07:00
Travis Reeder
75ed325cd3 Updated README to create and lists posts. 2017-09-29 16:05:23 -07:00
Travis Reeder
35bcc4e658 Blog API example (#377) 2017-09-29 15:59:39 -07:00
Chad Arimura
e963b96069 Update README.md 2017-09-29 08:29:30 -07:00
Chad Arimura
d8984c87f5 Merge pull request #374 from fnproject/docs-up-0928
Docs up 0928 - Fixes to main and tutorial README.md files
2017-09-29 08:03:33 -07:00
Michael Williams
144fb1791c Small fixes after first review 2017-09-29 08:50:59 -06:00
Nigel Deakin
be630540b2 Add README for hotfunctions go example and update docs to point to it 2017-09-29 12:07:56 +01:00
Nigel Deakin
e613cd1b2e Add README for hotfunctions go example and update docs to point to it 2017-09-29 12:07:09 +01:00
Nigel Deakin
c7fefff9a7 Add README for hotfunctions go example and update docs to point to it 2017-09-29 12:06:23 +01:00
Nigel Deakin
16cdd98a62 Add README for hotfunctions go example and update docs to point to it 2017-09-29 12:01:29 +01:00
Michael Williams
a036436d4e Fix broken links names in README.md for hello 2017-09-28 18:19:43 -06:00
Michael Williams
f8eda190a9 Fix broken links in README.md for hello 2017-09-28 18:14:37 -06:00
Michael Williams
a3e274105f Changes to Tutorials README.md to fix broken links 2017-09-28 18:05:28 -06:00
Travis Reeder
96cb13b211 Links to stackoverflow, blog and twitter. 2017-09-27 07:52:29 -07:00
Denis Makogon
1c8120f3f9 Updating route path 2017-09-25 17:54:04 +03:00
Denis Makogon
4c19ad4c96 Adding Python hot fn sample 2017-09-25 17:48:39 +03:00
Travis Reeder
904f288ed6 Replace FN_ROUTE with FN_PATH 2017-09-20 11:35:18 -07:00
Travis Reeder
87deba45e2 Updated docs. 2017-09-18 17:17:00 -07:00
Travis Reeder
5476665ea9 Quick link fix. 2017-09-18 17:17:00 -07:00
Travis Reeder
4f653e3595 wip 2017-09-18 17:17:00 -07:00
Travis Reeder
75e2051169 Example app structure. round 1. 2017-09-18 17:16:59 -07:00
Travis Reeder
fdc3e76359 wip 2017-09-18 17:16:59 -07:00
Reed Allman
2341456334 FN_ prefix env vars
this adds `FN_` in front of env vars that we are injecting into calls, for
namespacing reasons. this will break code relying on the current variables but
if we want to do this, the chance is now really. alternatively, we could
maintain both the old and new for a short period of time to ease the
adjustment (speak now...). updated the docs, as well.

this also adds tests for the notoriously finicky configuration of the env vars
and headers when setting up a call. this won't test the container / request
for the call is actually receiving them, but it's a decent start and will yell
loudly enough upon formatting breakage.

added back FXLB_WAIT to a couple places so the lb can ride again

one thing for feedback:

headers are a bit confusing at the moment (not from this change, but that
behavior is kept here for now), we've a chance to fix them. currently, headers
in the request __are not__ prefixed with `FN_HEADER_`, i.e. 'hot'+sync containers
will receive `Content-Length` in the http request headers, yet a 'cold'
container from the same request would receive `FN_HEADER_Content-Length` in
its environment. This is additionally confusing because if this function were
hot+async, it would receive `FN_HEADER_Content-Length` in the headers, where
just changing it to sync goes back to `Content-Length`. If that was confusing,
then point made ;)

I propose to remove the `FN_HEADER_` prefix for request headers in the
environment, so that the request headers and env will match, as request
headers already are of this format (not prefixed). please lmk thoughts here

Would be fine with going back to the 'plain' vars too, then this patch will
mostly just be adding tests and changing `FN_FORMAT` to `FORMAT`. obviously,
from the examples, it's a bit ingrained now. anyway, entirely up to y'all.
2017-09-06 07:24:50 -07:00
Reed Allman
fd1afb180c Merge pull request #300 from fnproject/cli-flag-changes
Updated docs for cli flag changes.
2017-09-08 12:00:16 -07:00
Chad Arimura
7b4744fe47 Update func.yaml 2017-09-08 09:26:08 -07:00
Travis Reeder
e56d555c3e Updated docs for cli flag changes. 2017-09-07 15:53:28 -07:00
Travis Reeder
eeec746ca2 Dropped the docker owner from function name. 2017-08-29 09:02:02 -07:00
David Delabassee
b6bcb9cb01 Set runtime to 'java' to have the pom.xml created (#217)
When the runtime is ['assumed'](11b5c4ce67/cli/init.go (L182-L188)) (i.e. not explicitly set to 'java'), the [pom.xml isn't created(85ae711447/cli/langs/java.go (L38-L45)) 
and [init fail](85ae711447/cli/langs/java.go (L99-L101)).
2017-08-29 08:59:53 -07:00