0x627832
b9362c60d2
Remove context in stringsvc examples 1 & 2 ( #764 )
...
* remove context from stringsvc1
* remove context from stringsvc2
2018-09-17 13:42:47 -07:00
Kaviraj
593cc9a550
Request to move from prometheus http (deprecated) to the promhttp
...
fixes #491
2017-03-12 12:38:50 +05:30
Bas van Beek
5b4da74163
remove server wide context from HTTP Transport in favor of per request context provided by net/http
2017-03-05 16:35:31 +01:00
Peter Bourgon
4a29204757
Use stdlib context instead of golang.org/x/net/context
2017-02-03 17:47:35 -08:00
Michal Budzyn
8cdb962642
Fix panic on inconsistent label cardinality and error semantic
2016-09-28 00:24:46 +02:00
Peter Bourgon
b149ec8f2a
examples: fixes for new metrics
2016-08-17 22:28:06 +01:00
Peter Bourgon
fb57ea5f2f
examples: update README + stringsvc: drop loadbalancer
2016-06-01 18:53:51 -04:00
Peter Bourgon
5f48909d07
transport/http: encoders and decoders take context
...
This is necessary to pass context through to the error encoder.
Also, update (fix) all examples.
2016-04-26 15:30:09 +02:00
Peter Bourgon
42b253c048
Unify logging idioms
...
- Context shall be provided by caller, not in constructor
- Don't bother with _ = logger.Log; turn off that lint complaint
- Minor linter fixes
Closes #148
2015-11-22 13:17:48 +01:00
Peter Bourgon
46b3634676
transport/http: Server constructor
2015-09-12 15:41:23 +02:00
Peter Bourgon
f9c3c72697
Merge pull request #119 from domudall/adding-metrics-handler-in-examples
...
Adding Prometheus handler
2015-09-07 16:43:19 +02:00
Peter Bourgon
e1035624d6
examples: fix for invalid commit f307e26
2015-09-07 09:58:27 +02:00
Peter Bourgon
f307e2619a
examples: stringsvc should properly return errors
...
The error type doesn't JSON marshal. Fixes #121 .
2015-09-07 09:52:15 +02:00
Dom Udall
6b424ed778
Adding Prometheus handler to allow metrics to be visible on /metrics in examples stringsvc2 and stringsvc3
2015-09-04 16:30:48 +01:00
Peter Bourgon
bcbfb948a7
transport/http: {Encode,Decode}{Request,Response}Func
2015-08-27 23:33:51 +02:00
Peter Bourgon
1ed136bce8
Completely rework examples and documentation.
...
Also improvements to transport/http.
2015-08-24 23:05:33 +01:00