statful / statful-client-java Goto Github PK
View Code? Open in Web Editor NEWStatful client for Java applications. This client is intended to gather metrics and send them to Statful.
Home Page: https://www.statful.com/
Statful client for Java applications. This client is intended to gather metrics and send them to Statful.
Home Page: https://www.statful.com/
StatfulAspect @Around
definition is defined as:
@annotation(timer)
Which means that it will can intercept both method call and method execution, which most likely is not the intended behaviour.
The annotation should be defined as:
@annotation(timer) && && execution(* *(..))
Just to note that the snippet
StatfulClient client = StatfulFactory.buildHTTPClient().with()
.token("STATFUL_API_TOKEN")
.build();
should also have a value for host (like "api.statful.com"), because the default is 127.0.0.1.
Not sure what value do you want to have there.
While sending metrics, logs are showing the following error message even when the message is correctly sent.
Unable to send metric. Reason: OK, status: 200
On com.statful.client.domain.api.StatfulClient we should expose methods to allow ingestion of pre sampled metrics like we do for pre aggregated metrics.
The downside of this is that implementing it will make the public API a bit more complex because all methods will need to be "duplicated"
Usage of Objects::nonNull should not be present
To make sure we are enforcing this Travis should be building with jdk7 instead of 8 since just setting the source and target is not reliable.
"Note: Merely setting the target option does not guarantee that your code actually runs on a JRE with the specified version. The pitfall is unintended usage of APIs that only exist in later JREs which would make your code fail at runtime with a linkage error. To avoid this issue, you can either configure the compiler's boot classpath to match the target JRE or use the Animal Sniffer Maven Plugin to verify your code doesn't use unintended APIs. In the same way, setting the source option does not guarantee that your code actually compiles on a JDK with the specified version. To compile your code with a specific JDK version, different than the one used to launch Maven, refer to the Compile Using A Different JDK example."
https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html
When sending several metrics as a string separated by a new line character, the last one shouldn't have that character as the client will expect to read another metric.
The readme shows the default aggregations for Counter as "AVG, P90" when the defaults aggregations seem to be "SUM, COUNT".
Whenever a method overload with Double/Float argument for value is used in the StatfulClientImpl
class we might be creating an invalid metric due to the output of the Double/Float toString()
potentially being a value in scientific notation.
The sample rate should be added to the end of the generated metric line.
Hello, can you correct the javadoc for the timestamp to state that the timestamp should be in unix time units (seconds)
/** * Sets the namespace of the metric. * * @param timestamp Namespace as long * @return A reference to this instance */ SenderAPI timestamp(final Long timestamp);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.