Francis Lalonde
87af3724f1
Justfile replaces Makefile. Clippy fixes: socket retry exponential backoff calculation
2023-02-15 16:45:21 -05:00
Francis Lalonde
37c7d806ea
remove some 'as' casts and unused returned timeval
2023-01-26 15:25:12 -05:00
Francis Lalonde
38c1315f31
v0.9.1
2023-01-16 11:00:13 -05:00
RafalGoslawski
9333c73783
Expose Attributes and WithAttributes trait as well
2022-12-16 13:19:29 +00:00
RafalGoslawski
a29991a938
Exposed attributes::MetricId
2022-12-15 17:18:49 +00:00
Francis Lalonde
e7a00d9cf3
Clippy fixes
2022-07-12 14:11:39 -04:00
Francis Lalonde
a5939a794e
Clippy + Format
2020-05-25 09:12:24 -04:00
Francis Lalonde
46241ad439
v0.9.0
2020-05-22 23:53:18 -04:00
Francis Lalonde
a63ddbeab7
0.8.0 SUCH REJOICING
2020-05-15 00:28:40 -04:00
Francis Lalonde
27fe143e6c
Fix --no-default-features build, bump to v0.7.13
2020-04-23 15:37:41 -04:00
Francis Lalonde
8025b9da5c
Fix for BorrowMut Panic #78
2020-04-17 07:52:46 -04:00
Michal 'vorner' Vaner
159c422afa
Make the OnFlushCancel Send and Sync
...
It is useless otherwise in most multithreaded applications.
2019-08-30 11:59:52 +02:00
Michal 'vorner' Vaner
9fdbb4839d
fixup! A cancel guard
2019-07-12 21:32:16 +02:00
Michal 'vorner' Vaner
35572454d4
A cancel guard
...
Allows cancelling something by dropping a guard, in RAII manner, instead
of manually calling .cancel();
Closes #74 .
2019-07-12 20:04:13 +02:00
Francis Lalonde
1f656fc62e
Merge pull request #75 from vorner/warn-unused-observe-when
...
Use must_use on the ObserveWhen
2019-07-12 09:58:11 -04:00
Michal 'vorner' Vaner
ea96d5c6a0
Use must_use on the ObserveWhen
...
Otherwise, nothing would get observed, so better warn on it.
2019-07-11 18:39:51 +02:00
Francis Lalonde
314764987b
Add dyn keyword to dyn traits as per clippy's advice
2019-07-11 11:48:14 -04:00
Michal 'vorner' Vaner
2ebf6719b9
Make OnFlushCancel public
...
Otherwise it can't be directly stored into a struct, because the type
can't be named.
2019-07-11 17:19:59 +02:00
Francis Lalonde
3147ca034f
Merge branch 'master' of github.com:fralalonde/dipstick
2019-06-22 08:53:32 -04:00
grippy
33a3fba4af
Fixes issue with missing linefeed and uses post for prom/pushgateway call. Also adds an example on using Proxy, AtomicBucket, and MultiOutput
2019-06-21 20:05:24 -07:00
Francis Lalonde
622c3ba667
Bumped to 0.7.8, changes, fix EOL prometheus
2019-06-21 20:55:11 -04:00
Francis Lalonde
84a5e4c4d3
Fixed prometheus buffer issue
2019-06-21 19:42:57 -04:00
Francis Lalonde
b229f3ce9a
Make ID generator static (not const), updates CHANGES.md
2019-05-21 22:35:15 -04:00
Francis Lalonde
c281012b5d
Quick move to Rust 2018 using cargo fix
2019-05-21 22:23:31 -04:00
Francis Lalonde
c523dc966b
Fix nightly's 'acceptable regression'
2019-05-21 21:45:30 -04:00
Francis Lalonde
4182504f76
Give each flush listener its own id
2019-05-17 15:48:51 -04:00
Francis Lalonde
58ef0797d2
Merge pull request #66 from fralalonde/unique-metrics
...
Fix potential observer leak with unique metric IDs
2019-05-14 20:40:14 -04:00
Francis Lalonde
c88cc8f7f8
Observer on_flush PR fixes
2019-05-14 20:07:49 -04:00
Michal 'vorner' Vaner
8974fc5fa7
Allow delegating the Observe trait to other type
...
When the result was fixed to ObserveWhen<Self, _>, it was impossible to
simply delegate the trait into an wrapped type. This allows the
possibility to return ObserveWhen<Whatever, _> (which can be Self in the
case of the default implementation).
Fixes #65 .
2019-05-10 22:11:13 +02:00
Francis Lalonde
d50e38308d
Fix potential observer leak with unique metric IDs
2019-05-10 15:16:21 -04:00
Michal Turek
55fe491df5
Reexport `ObserveWhen` to make it public.
...
- `ObserveWhen` is a return value of public `Observe.observe()` but it is unfortunately private.
2019-05-07 15:42:31 +02:00
Francis Lalonde
577f3c72b7
Updated changelist and added build instructions
2019-04-16 17:44:15 -04:00
Francis Lalonde
dbd659a91d
Apply formatting
2019-04-16 17:30:44 -04:00
Francis Lalonde
f13948e43f
Sanitize with clippy
2019-04-16 17:29:55 -04:00
Francis Lalonde
11cc138065
Observe any metric type, pass now to Oberver as param
2019-04-10 11:00:46 -04:00
Francis Lalonde
018662faf5
0.7.2 changelist
2019-04-10 09:05:14 -04:00
Francis Lalonde
7028ae9ffc
Add back to_new_file changes
2019-04-09 08:53:20 -04:00
Francis Lalonde
6a205337e5
Document observers in handbook
2019-04-09 08:43:14 -04:00
Francis Lalonde
0070f26d6d
Applied format
2019-04-09 07:55:15 -04:00
Francis Lalonde
e5c74de9ed
Fix shared flush listeners & schedule handles
2019-04-09 07:46:25 -04:00
Francis Lalonde
23dc724a4b
Ergonomize listeners
2019-04-08 22:49:39 -04:00
Francis Lalonde
5c5ec504f5
New single thread scheduler
2019-04-07 23:42:34 -04:00
Francis Lalonde
7593eea5a0
Merge branch 'feature/observers' of github.com:fralalonde/dipstick into feature/observers
2019-04-04 22:46:51 -04:00
Francis Lalonde
8c764d0d71
WIP - Single thread scheduler
2019-03-17 09:34:42 -04:00
Francis Lalonde
22a7e47c2c
Abandon Observer struct
2019-03-11 14:28:55 -04:00
Francis Lalonde
90626748ef
Abandon Observer struct
2019-03-11 14:22:55 -04:00
Francis Lalonde
bb2780e0ce
Added OnFlush & Gauge Observers
2019-03-08 16:59:51 -05:00
Michal Turek
f279fa6790
#42 pub(crate) -> pub as requested.
2019-03-07 15:38:42 -05:00
Michal Turek
fb8fe633cb
#42 Improve API, remove Arc that wraps the closure, rename method.
2019-03-07 15:37:48 -05:00
Michal Turek
4a6227122d
#42 Improve API, remove Arc that wraps the closure.
2019-03-07 15:37:48 -05:00