Jonathan Strong
486d8bf300
put feature(test) behind unstable feat flag so compiling with stable works
2 years ago
Jonathan Strong
93287bc664
integrates AsI64/AsF64 usage for the optional upperhand shorthands
2 years ago
Jonathan Strong
b5d4a775b6
extend optional field syntax in measure! - use uppercase variants of shorthand characters for Option<T>
2 years ago
Jonathan Strong
dae7d8067d
log total pts rcvd (sum of number of fields in each measurement)
2 years ago
Jonathan Strong
e6f35d6a61
benchmarks for how long influx.send(..) takes in different situations
3 years ago
Jonathan Strong
96a8d44b97
silence compiler warning
3 years ago
Jonathan Strong
c47903d464
add a drop deadline to exit routine
3 years ago
Jonathan Strong
3c9988dd42
upgrade decimal crate to v2.4, add more robust handling for int conversion errors in AsI64 impls
3 years ago
Jonathan Strong
e380a77113
skip serializing NaN f64/d128 values, rather than previous strategy of supplying -999.0 signal value
I find excluding -999.0 values annoying in practice.
3 years ago
Jonathan Strong
5830d1d13c
in measure, allow `Option<d128>` fields with "D" prefix
example:
```
let a: Option<d128> = Some(d128::from_str("123.456").unwrap());
let b: Option<d128> = None;
measure!(influx, meas, D(a), D(b));
```
in the `None` case, no field is added at all.
3 years ago
Jonathan Strong
a68306df1f
prefix various log messages with "InfluxWriter: "
3 years ago
Jonathan Strong
50c7892809
reduce frequency of status update log message from 60s to 300s
3 years ago
Jonathan Strong
0a805ab609
reverse InfluxWriter::with_logger deprecation in face of overwhelming popular demand
3 years ago
Jonathan Strong
58bc3b9a39
remove obe 'mm' prefix to InfluxWriter thread name
3 years ago
Jonathan Strong
e8872c9004
reduce sleep duration when closing thread from 1s -> 10ms
3 years ago
Jonathan Strong
f944dba825
add authenticated writes functionality
3 years ago
Jonathan Strong
9178b7a13b
validate memory scaling, add logging
- adds example to repeatedly send many measurements to InfluxWriter for purposes of stress testing (i.e. shut influxdb off, see if InfluxWriter recovers correctly)
- InfluxWriter now tracks allocated buffer memory and logs it
- lower INITIAL_BACKLOG
3 years ago
Jonathan Strong
3e476ce20e
allow writer thread to scale up from INITIAL_BACKLOG to MAX_BACKLOG and then back down
3 years ago
Jonathan Strong
29dc9b8010
fix misc other broken things
4 years ago
Jonathan Strong
94f1e93026
get rid of everything else except the influx mod, and rename the crate influx-writer
4 years ago
Jonathan Strong
7a0684371f
adds `pub fn rotating_file_logger<P>(path: P, level: Severity, compress: bool) -> slog::Logger`
allows optional compression on rotated logfiles
5 years ago
Jonathan Strong
7d2fce56a4
add test to verify Utc -> nanos is lossless
5 years ago
Jonathan Strong
dbd72c21fa
upgrade sloggers to v0.3 and use new log rotation/compression features
5 years ago
Jonathan Strong
4830a27c3b
revamped InfluxWriter passed its tests with flying colors
this thing is a fucking rock now
5 years ago
Jonathan Strong
11b214da7a
feat(InfluxWriter): huge refactor so InfluxWriter queues a backlog on failed db requests
will need extensive testing before prod use
5 years ago
Jonathan Strong
aa5cdf2b3b
adds pub fn secs(Duration) -> f64 at crate root and InfluxWriter::secs(&self, Duration) -> f64
5 years ago
Jonathan Strong
77a1fd79d4
hide latency mod behind feature gate
5 years ago
Jonathan Strong
33519ceece
pub fn nanos_utc(t: i64) -> DateTime<Utc>
5 years ago
Jonathan Strong
2b303be4ec
swaps in the dirs crate home_dir() instead of deprecated std fn
5 years ago
Jonathan Strong
00d0e1a427
makes zmq optional dep
5 years ago
Jonathan Strong
b9b1306da1
some nanos-related things
6 years ago
Jonathan Strong
2930c261c0
misc
6 years ago
Jonathan Strong
1cfad254e0
sets huge channel buffer for async logger when trace is enabled
6 years ago
Jonathan Strong
e11ea9ed6a
adds short_uuid fn to root
6 years ago
Jonathan Strong
0713744d12
middle of the night debugging
I copied several Window structs from windows crate to avoid a cyclic
dependency. The rationale was, latency mod is on its way out anyway.
6 years ago
Jonathan Strong
f5a1d54040
changes channel size to 20k
6 years ago
Jonathan Strong
a87cb002ac
replaces Vec with SmallVec for backing storage of `OwnedMeasurement`
6 years ago
Jonathan Strong
6541d5ffb9
puts warnings mod behind a feature gate
6 years ago
Jonathan Strong
9932cec369
misc
6 years ago
Jonathan Strong
92dd50c2a4
misc
6 years ago
Jonathan Strong
7b8f8c0918
InfluxWriter loop now blocks on recv, among other incremental improvements
6 years ago
Jonathan Strong
e9e6e01ebe
InfluxWriter refactor (mostly)
6 years ago
Jonathan Strong
4a6498a6f1
adds async_file_logger fn
6 years ago
Jonathan Strong
4635decd57
adds hist mod with hdrsample interface/thread
6 years ago
Jonathan Strong
453776b273
re-exports sloggers::Severity for convenience
6 years ago
Jonathan Strong
9a8e62754d
massive cleanup
- kills MeasurementWindow/WTen
- all warnings silenced
- cruft removed
6 years ago
Jonathan Strong
5b716e411b
adds test feature
6 years ago
Jonathan Strong
fa0d5b68fb
sets file_logger to return a noop logger if cfg(test)
6 years ago
Jonathan Strong
929fdb2183
minor tweaks
6 years ago
Jonathan Strong
c84e7b46a6
adds d128, Uuid variants to OwnedValue + assorted improvements
6 years ago