Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,9 @@ private CoreTracer(
assert taggedHeaders != null;
assert baggageMapping != null;

// preload this enum to avoid triggering classloading on the hot path
TraceCollector.PublishState.values();
Comment on lines +659 to +660
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion:

Suggested change
// preload this enum to avoid triggering classloading on the hot path
TraceCollector.PublishState.values();
// preload this enum to avoid triggering classloading on the hot path
// This prevent an an issue with VirtualThread instrumentation
TraceCollector.PublishState.values();


if (reportInTracerFlare) {
TracerFlare.addReporter(this);
}
Expand Down