Commit Graph

38 Commits

Author SHA1 Message Date
Sergey Yelin
2d7efff936
hackney 1.18.0 (#155) 2021-10-01 11:28:53 +03:00
Andrew Mayorov
68b191ed36
ED-266: Bump to rbkmoney/thrift_erlang@c280ff2 (#154) 2021-09-14 13:52:02 +03:00
Sergey Yelin
330bdcf71e
ED-204: Move woody_api_hay to separate repo (#153)
* ED-204: Move woody_api_hay to separate repo

* Move woody_client_metrics to woody_api_hay repo

* proper 1.4.0

* Fix proper
2021-08-11 22:24:08 +03:00
Sergey Yelin
d9fca6da55
Prepare for Erlang 24 (#150)
* Update deps with support for Erlang 24
* Remove generated artefacts from test
* Fix compiler warning
* Format
2021-05-21 13:28:56 +03:00
dinama
f2cd30883d
upgrade: +alpine +rebar +dialyzer +deps (#149) 2021-01-15 15:35:41 +03:00
Andrew Mayorov
3b76622054
Bump to rbkmoney/thrift_erlang@846a081 (#147) 2020-10-02 14:06:35 +03:00
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
Andrew Mayorov
33b6991373
Downgrade hacnkey to 1.15.2 (#143)
Since benoitc/hackney#638 affects us consistently and still needs fixing.
2020-08-04 14:47:06 +03:00
Andrey Fadeev
b563bbb435
Update snowflake to rbkmoney/snowflake@7f379ad5e (#142) 2020-07-27 22:10:57 +03:00
Sergey Yelin
baa3db27da
Switch to Erlang lib pipe (#141)
* Switch to Erlang lib pipe

* fix damsel URL

* Switch to sequential

* Fix URL for cg_mon

* Use parallel pipe

* Fix URL to folsom

* Fix path to plt

* Update build_utils

* Back to sequential

* Add note

* Add named params

* Switch back

* Typo
2020-07-09 15:41:45 +03:00
Andrew Mayorov
a434e55e14
Bump to rbkmoney/thrift_erlang@aa233e2 (#139)
* Bump to rbkmoney/image-build@07d3946f
* Bump hackney to 1.16.0
2020-06-30 15:19:53 +03:00
Andrey Fadeev
feb52436aa
Update snowflake (#137) 2020-05-26 15:24:35 +03:00
Andrey Fadeev
8543878a55
Update snowflake (#133) 2020-03-31 16:37:41 +03:00
Sergei Shuvatov
3ddd842a33
MSPF-532: get rid of rfc3339 lib (#131) 2020-02-17 19:36:29 +03:00
Toporkov Igor
ed644d7d70
MSPF-490: Monitor to detect client disconnection (#111)
* Monitor to detect client disconnetion on server side

* Renaming save_woody_state

* Rework monitor to use one per connection

* Changed event type

* wip: stream handler skeleton

* wip: log abnormal termination

* Upgrade cowboy to 2.7.0

* Finish migration to stream_handler

* Upgrade more dependencies

* Fix state type, remove early_error logging

* rename woody_monitor to comply with cowboy naming

* remove redundant monitor pid from state

* Log only socket errors

* wrap put_woody_state

* experimental: monitor for woody_events

* add missing update

* match on handle_event return, don't monitor tracing

* Rework update_woody_state

* Slightly increase min_complexity in linter config

* Make event state transition explicit

* Remove handle_event wraper

* Revert "Slightly increase min_complexity in linter config"

This reverts commit 38301e3b5b66967cb08c0bf7f27a2a8042a40a19.

* match unmetched returns

* Add test

* Erase trailing whitespace

* Refactor test

* Delete mistakenly added file

* Rename function

* Review fixes

* Match supervisor return

Co-Authored-By: Andrew Mayorov <a.mayorov@rbkmoney.com>

Co-authored-by: Andrew Mayorov <encube.ul@gmail.com>
2020-02-05 14:35:43 +03:00
ndiezel0
e46a3b6303
Bump how_are_you (#127) 2020-01-30 19:40:57 +03:00
Sergey Yelin
281fef35ff
Remove support for pre-Elrang21 stacktraces (#113)
* Remove support for pre-Elrang21 stacktraces

* Prepare for Erlang 22
2019-09-26 12:13:53 +03:00
Toporkov Igor
649a8aba30
Created hay handler to monitor connections (#104)
* Created hay handler to monitor connections

* Review fixes #1

* Added hay as app dependency

* Created metrics receiver for hackney

* Removed filtering, added key tagging

* Added metrics to tests

* Removed non list key tagging option

* Refactored metric updates

* Moved hay to test deps

* Strictened allowed metrics, enabled key mapping

* Added privkey to dialyze CI step

* Reordered privkey

* Changed cache location

* Hardcoded allowed metrics

* Use tag for test deps

* Collect info for all ranch listeners
2019-07-05 16:31:58 +03:00
Andrey Fadeev
3fd2111537
HG-484 Update thrift (#102) 2019-05-30 18:44:37 +03:00
Andrey Fadeev
c396f927b5
MG-155 Improve resolving (#88)
Update hackney to version with fixed hostname normalization.
Add resolving both ipv4 and ipv6 only addresses.
2019-04-02 18:00:07 +02:00
Toporkov Igor
862358ee62
MSPF-428: Erlang OTP 21 to master (#86)
* MSPF-394/Migrate woody_erlang to cowboy 2.5.0 (#82)

* Renewed some old cowboy syntax

* Reworked types to fit new cowboy/ranch versions

* Replaced cowboy tuples with separate values

* Fixed types, deleted testing logs, deleted redundant errors

* Moved to new StackTrace retrieval syntax for Erlang/OTP 21

* Restored default config, fixed typing

* Cleaned unnessesary changes, removed export_all

* Restored genlib cached version

* Downgraded to old stacktrace retrieval syntax, fixed codestyle

* Restored new StackTrace retrieval syntax, updated build image

* Changed rebar3 version for CI

* Corrected typing and spelling, removed unnessesary supervisor

* Created stream handler to replace hooks

* Added options for reading body

* Simplified stream handler

* Fixed wrong module name, added read body options support in stream handler

* Puted read body opts to env, renamed stream handler

* Codestyle, types and config fixes

* Moved response tracing to a separate function, now tracing failed requests too

* Changed options to map (#83)

* Fixed wrong timeout override logic (#84)

* Patch merge conflict

* Bump dependencies  (#87)

* bumped hackney

* bumped erlang thrift commit
2019-03-28 17:52:17 +03:00
Andrew Mayorov
7a57a10d02
Expose ranch transport opts (#79)
It will allow library users to tune things like number of max allowed concurrent connections.
2018-11-07 12:54:54 +03:00
Andrey Fadeev
94eb44904e
MSPF-351 Add headers transition (#71) 2018-07-31 11:37:13 +03:00
Petr Kozorezov
996f6d5b2c
Task/mspf 374/woody caching (#73)
* add stale cache and joint workers

* add caching client

* add test, refactor code a little bit

* apply review fixes

* apply review fixes

* apply review fixes

* add caching client events

* apply review comments

* add thrift meta info to cache events

* update tests
2018-07-31 10:51:12 +03:00
Andrey Fadeev
354ac76645
MG-128 Switch rfc3339 back to upstream (#72) 2018-07-06 15:35:20 +03:00
Andrey Fadeev
98469234e4
MG-128 Fix deadline without milliseconds part parsing (#69)
Switch to our own rfc3339 fork
2018-07-03 19:48:43 +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
Andrew Mayorov
2f264f97c6 HG-155: Bump to rbkmoney/thrift@240bbc8 (#53) 2017-03-20 18:20:03 +03:00
Anton Belyaev
66884b7020 MSPF-200: bump up erlang to 19.1 and fix some bugs along the way (#50)
* bump up erlang to 19.1
* fix Issue https://github.com/rbkmoney/woody_erlang/issues/44
* fix Issue https://github.com/rbkmoney/woody_erlang/issues/41
* fix some other bugs
2017-02-22 15:45:51 +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
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
Andrew Mayorov
78b3f7767c MG-15: Bump thrift runtime dep (#16) 2016-08-24 14:59:04 +00:00
Andrew Mayorov
cd7779e615 HG-40: Bump thrift dep to include latest bugfix (#7) 2016-07-29 09:25:48 +00:00
Andrew Mayorov
302e829154 HG-40: Fix interoperability with respect to scoped record names (#6)
* HG-40: Fix interoperability with respect to scoped record names

* HG-40: Provide build container with the newest thrift compiler
2016-07-06 17:02:08 +03:00
Anton Belyaev
132efd80d9 MSPF-31: add woody_client:make_id/1; new thrift_erlang; minor refactoring 2016-05-20 18:55:02 +03:00
Anton Belyaev
25e9996a71 Update thrift dep 2016-05-06 20:45:11 +03:00
Anton Belyaev
679beb2d59 Correct repo for thrift dependency 2016-04-14 17:38:45 +03:00
Anton Belyaev
106415361b First version 2016-04-14 10:40:33 +03:00