opentelemetry-java/sdk-extensions/jfr-events
Anuraag Agrawal 8697de9afa
Detect GC leaks of scopes in StrictContextStorage. (#2164)
* Detect GC leaks of scopes in StrictContextStorage.

* More

* Finish

* Force GC more aggressively

* Cleanup

* Vendor code directly

* Copy test too

* Try waiting more

* ep

* oops

* Remove from build.gradle

* Drift

* Log on multiple

* Cleaner ourselves.

* EP

* Move into if

* Revert accidental
2020-12-04 13:04:27 +09:00
..
src Detect GC leaks of scopes in StrictContextStorage. (#2164) 2020-12-04 13:04:27 +09:00
README.md Prototype for JFR events using Context interceptor (#963) 2020-11-24 14:49:02 -08:00
build.gradle Detect GC leaks of scopes in StrictContextStorage. (#2164) 2020-12-04 13:04:27 +09:00

README.md

OpenTelemetry SDK Extension Java Flight Recorder (JFR) Events

Create JFR events that can be recorded and viewed in Java Mission Control (JMC).

  • Creates Open Telemetry Tracing/Span events for spans
    • The thread and stracktrace will be of the thead ending the span which might be different than the thread creating the span.
    • Has the fields
      • Operation Name
      • Trace ID
      • Parent Span ID
      • Span ID
  • Creates Open Telemetry Tracing/Scope events for scopes
    • Thread will match the thread the scope was active in and the stacktrace will be when scope was closed
    • Multiple scopes might be collected for a single span
    • Has the fields
      • Trace ID
      • Span ID
  • Supports the Open Source version of JFR in Java 11.
    • Might support back port to OpenJDK 8, but not tested and classes are built with JDK 11 bytecode.