Comments (7)
to allow adding these myself by implementing Metric (if I read the sources correctly)
Computer says no:
error: module `types` is private
--> src/handler.rs:9:5
|
9 | use cadence::types::Metric;
| ^^^^^^^^^^^^^^^^^^^^^^
from cadence.
Hi @robinst
I'm only vaguely familiar with Datadog and their extensions to Statsd. Histograms look useful and they would probably be very straightforward to add support for. I can open a PR and cc you there if that works for you. Thanks!
from cadence.
Sounds good!
Histograms also in the spec you linked in the code, so maybe more implementations support it: https://github.com/b/statsd_spec/blob/master/README.md#histograms
Another useful thing is tags, which allow you to attach more information to a metric, see here: http://docs.datadoghq.com/guides/dogstatsd/#tags
The format is described later in the page under "Datagram Format".
from cadence.
Cool.
I'll open another issue for tag support since they'll be a bit more work and I'd like to think about how I'd implement them. Thanks again!
from cadence.
PR for histogram support #42. The docs related to the new trait are my interpretation of the Datadog docs as well as the Statsd spec. Let me know if I've gotten anything wrong.
from cadence.
Thanks @robinst! I'll probably end up cutting version 0.9.0 with this change in the next few weeks.
from cadence.
Cool, thanks! No rush by the way, I'll check out the release in the new year.
from cadence.
Related Issues (20)
- SpyMetricSink and Mutex poisoning HOT 5
- Remove uses of `static mut` in macros and macro tests HOT 2
- f64 support for distribution metric type HOT 3
- Make client methods generic on value type
- create migration guide
- Bump minimum Rust version due to Criterion deps
- Add f64 constructors to histograms and distributions
- Add tests for multiple types for each metric in cadence-macros
- Update all examples to have multiple types for each metric
- Datadog Event stream support HOT 1
- Create example of using conversion traits with custom type
- Add tags to all metrics HOT 5
- Instrumented allocator to verify heap allocations
- Remove client uses of Arc
- Remove MetricError description implementation
- Define parts of the API covered by semver
- Edition 2021 update
- Support being able to sample metrics HOT 3
- Add support for incrementing and decrementing a gauge HOT 2
- Distribution missing tags from StatsdClientBuilder HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cadence.