Git Product home page Git Product logo

statful-client-java's People

Contributors

brunopalos avatar dependabot[bot] avatar franciscomota avatar gabrielmpinto avatar hugocostamindera avatar hugovalente-mindera avatar miguelcnf avatar reistiago avatar senzzzi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

statful-client-java's Issues

Aspect Pointcut

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(* *(..))

Wrong handling of HTTP status codes

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

Expose methods for results that are already sampled

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"

Remove Java 8 features

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

Last metric has a new line character

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.

Javadoc for timestamp in sender api needs correcting

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);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.