Commit Graph

29 Commits

Author SHA1 Message Date
Andrew Mayorov
d106ef66bd
Use new performant thrift codec infrastructure (#145)
* Implement woody_client_thrift_v2 over new thrift codec facility, make it default
* Move tracing facilities into woody_trace_h
* Implement woody_server_thrift_v2 over thrift codec facility, make it default
* Bump to rbkmoney/genlib@54920e76
* Enforce tuple-based args representation
* Enable cross tests between impls
* Switch to master rbkmoney/thrift_erlang@4eda678c
2020-08-18 13:01:47 +03:00
Alexey
533d2a6d81
MSPF-429: Graceful shutdowns (#89) 2019-04-19 14:18:32 +03:00
Andrew Mayorov
71475b5d3d
Relax test assertion to make it realistic (#80)
* Update README with mentions of new and updated options
2018-11-07 15:37:24 +03:00
Anton Belyaev
9c1c8b3a0a
Describe server tracing in README. (#76) 2018-09-06 13:38:53 +03:00
Andrey Fadeev
ca28ab65fa
HG-389 Caching client integration fixes (#75)
Turn off requests collapsing by default
Add caching client event for scoper event handler
Add small caching_client description in README
2018-09-06 13:31:39 +03:00
Anton Belyaev
74fb666e87
MSPF-313: introduce deadlines (#62)
* introduce woody deadline
* refactor cowboy handler init checks order
  1. start with basic http checks
  2. proceed with woody related stuff
2018-01-30 12:50:18 +03:00
Anton Belyaev
ad1e91050c MSPF-281: add event meta formatting interface and introduce woody_state (#61)
* add event meta formatting
* introduce woody_state
* freshen up the build image
* add  tag for internal error on cowboy unhealthy termination
2017-10-20 14:34:01 +03:00
Anton Belyaev
62e6e19f4a MSPF-232-235: fixes after M pen testing (#56)
* MSPF-232: optionally configure max_heap_size limit for server handler.
* MSPF-233: check vm total memory against configurable threshold before
            starting to handle request on the server.

* MSPF-234: improve introspection for result_unexpected errors on the client.
* MSPF-234: send thrift decode error details from server to client
* MSPF-234: pass stacktrace for result_unexpected error from server to client as error details
* MSPF-235: use input Id as a span_id, instead of trace_id in woody_context:new_rpc_id/1.
            trace_id is used across the entire requst tree and is rather safer
            as woody snowflake id.

* fix a bug in server net_opts handling
* fix event formatting types
2017-05-18 17:17:37 +04:00
Anton Belyaev
d6f0de5a35 MG-64: correct woody_client:child_spec name (#52) 2017-03-04 14:37:17 +04:00
Dmitry Manik
7650c1f9f1 Fix flowed child_spec abstraction (#48)
* MG-64: Add find_pool function

* MG-64: Refactor options

* MG-64: Fix linter and dialyzer errors

* MG-64: Fix tests

* MG-64: Add review fixes

Remove unnecessary functionality
Rename pool_name -> name option
Define child_spec as woody_client_behaviour

* MG-64: Add review fixes 2
2017-03-03 17:34:41 +03:00
Dmitry Manik
75c4b97608 Add an opportunity to obtain pool child spec (#45)
* Add an opportunity to obtain pool child spec

* Rework options passing while creating pools

* Add some info about child_spec usage
2017-02-09 19:56:09 +03:00
Anton Belyaev
249fa01d13 MSPF-108: fix handler example in README (#40) 2016-12-29 19:12:06 +03:00
Anton Belyaev
e1782b323b Update README.md (#39) 2016-12-19 15:04:16 +03:00
Anton Belyaev
ac84da3d5b MSPF-108: transient errors implementation (#38)
* align rpc id handling with new requirements
* add new interface woody.erl, mv woody_t -> woody
* bump up thrift for the latest thrift_membuffer_transport
* remove woody:call_safe/3, woody_client:call_safe/3 from client API
* add cowboy net_opts to Server API
* Introduce event formatter to woody_event_handler
* Refactor events
* Remove outdated exception from the elvis rules
* Update woody_server_thrift_handler internal API
* make Opts optional for handlers
* add default event handler
* bump up hackney
* update README
* fix issues: 12, 18, 20, 21, 25, 26, 31, 37
2016-12-19 14:11:05 +03:00
Anton Belyaev
ebf5b86e99 MSPF-18: new woody context (#36)
* MSPF-18: introduce woody_context
* MSPF-18: use Jenkins cache for dialyze; bump up build utils (add colors to wc_%), build-image
* MSPF-18: add bugfix for [Issue 20]
* MSPF-18: add bugfix for [Issue 27]
* MSPF-18: add bugfix for [Issue 29]
* MSPF-18: add bugfix for [Issue 34]
* MSPF-18: update README
2016-11-18 16:49:05 +03:00
Anton Belyaev
49f47a8b3d MSPF-61: switch to build utils and refactor (#17)
* start using build_utils
* simplify woody_client:result_ok() type (issue 10)
* use integer snowflake id
* rename woody_client_thrift:format_return/3 (issue 11)
* provide details to event_handler for http errors (issue 15)
* clarify net_opts() for woody_server_thrift_http_handler:options() type
* switch snoflake to rbkmoney fork
* update readme
* introduce lint and fix lint warnings
* add woody_client:make_id_int/0 API function
2016-08-26 19:15:48 +04:00
Anton Belyaev
2c232d2f37 MSPF-31: update thrift_handler behaviour
* remove useless handle_error/4
* handle_function/4 should include woody_client:context() in all return cases
2016-05-20 23:07:43 +03:00
Anton Belyaev
85c894ead9 Refactor woody_event_handler. Update README
* Make rpc_id (triple: span_id, parent_id and trace_id) a separate argument for handle_event/3.
* Sync README with refactored API in woody_event_handler, woody_server_thrift_handler and woody_client.
2016-05-05 17:22:55 +03:00
Anton Belyaev
82b8947a9c Fix woody_server_thrift_handler:agrs() type; improve README 2016-04-22 20:34:51 +03:00
Anton Belyaev
161f4100fd Update: RPC lib requirements page moved 2016-04-21 19:22:22 +03:00
Anton Belyaev
aa354f02fb Apply the last cooments 2016-04-21 15:08:02 +03:00
Anton Belyaev
921aa75f49 Rename rpc_erl -> woody_erlang 2016-04-20 14:44:46 +03:00
Anton Belyaev
abd820b473 Apply review comments 2016-04-19 19:53:08 +03:00
Anton Belyaev
04d6fa34b3 Clarify client side logging and return for error cases 2016-04-18 00:38:00 +03:00
Anton Belyaev
ccd614e93b Provide RpcId to thrift handler for use in logging 2016-04-17 01:43:01 +03:00
Anton Belyaev
9f3e332166 Minor cleanup 2016-04-14 12:42:27 +03:00
Anton Belyaev
56fdd1d2d6 Add werker badge to README 2016-04-14 10:48:15 +03:00
Anton Belyaev
106415361b First version 2016-04-14 10:40:33 +03:00
Anton Belyaev
97e2401e14 Initial commit 2016-04-14 10:28:53 +03:00