Upgrade disruptor to include the fix for SleepingWaitStrategy causing 100% CPU (#1026)

1 file changed
tree: 95c63e47111c50e53c290017d967728688daa8ef
  1. .github/
  2. all/
  3. api/
  4. benchmarks/
  5. buildscripts/
  6. checker-framework/
  7. contrib/
  8. examples/
  9. exporters/
  10. gradle/
  11. impl/
  12. impl_core/
  13. impl_lite/
  14. scripts/
  15. testing/
  16. .gitignore
  17. .gitmodules
  18. .travis.yml
  19. appveyor.yml
  20. AUTHORS
  21. build.gradle
  22. CONTRIBUTING.md
  23. findbugs-exclude.xml
  24. gradlew
  25. gradlew.bat
  26. LICENSE
  27. README.md
  28. RELEASING.md
  29. settings.gradle
README.md

OpenCensus - A stats collection and distributed tracing framework

Gitter chat Maven Central Javadocs Build Status Windows Build Status Coverage Status

OpenCensus is a toolkit for collecting application performance and behavior data. It currently includes 3 apis: stats, tracing and tags.

The library is in alpha stage and the API is subject to change.

Please join gitter for help or feedback on this project.

Instrumentation Quickstart

Integrating OpenCensus with a new library means recording stats or traces and propagating context.

Add the dependencies to your project

For Maven add to your pom.xml:

<dependencies>
  <dependency>
    <groupId>io.opencensus</groupId>
    <artifactId>opencensus-api</artifactId>
    <version>0.12.0</version>
  </dependency>
</dependencies>

For Gradle add to your dependencies:

compile 'io.opencensus:opencensus-api:0.12.0'

Hello "OpenCensus" trace events

Here's an example of creating a Span and record some trace annotations. Notice that recording the annotations is possible because we propagate scope. 3rd parties libraries like SLF4J can integrate the same way.

public final class MyClassWithTracing {
  public static void doWork() {
    // Create a child Span of the current Span.
    try (Scope ss = tracer.spanBuilder("MyChildWorkSpan").startScopedSpan()) {
      doInitialWork();
      tracer.getCurrentSpan().addAnnotation("Finished initial work");
      doFinalWork();
    }
  }

  private static void doInitialWork() {
    // ...
    tracer.getCurrentSpan().addAnnotation("Important.");
    // ...
  }

  private static void doFinalWork() {
    // ...
    tracer.getCurrentSpan().addAnnotation("More important.");
    // ...
  }
}

Hello "OpenCensus" stats events

TODO

Quickstart for Applications

Besides recording tracing/stats events the application also need to link the implementation, setup exporters, and debugging Z-Pages.

Add the dependencies to your project

For Maven add to your pom.xml:

<dependencies>
  <dependency>
    <groupId>io.opencensus</groupId>
    <artifactId>opencensus-api</artifactId>
    <version>0.12.0</version>
  </dependency>
  <dependency>
    <groupId>io.opencensus</groupId>
    <artifactId>opencensus-impl</artifactId>
    <version>0.12.0</version>
    <scope>runtime</scope>
  </dependency>
</dependencies>

For Gradle add to your dependencies:

compile 'io.opencensus:opencensus-api:0.12.0'
runtime 'io.opencensus:opencensus-impl:0.12.0'

How to setup exporters?

Trace exporters

Stats exporters

How to setup debugging Z-Pages?

If the application owner wants to export in-process tracing and stats data via HTML debugging pages see this link.