Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add inferred spans for virtual thread blockers #178

Open
JonasKunz opened this issue Mar 14, 2024 · 0 comments
Open

Add inferred spans for virtual thread blockers #178

JonasKunz opened this issue Mar 14, 2024 · 0 comments

Comments

@JonasKunz
Copy link
Contributor

In a recent spacetime I developed a feature to automatically generate spans for when a virtual thread is blocked for a configurable amount of time.

This works by hooking onto JVMTI mount/unmount events for virtual spans.
When a span has been unmounted for a time exceeding the threshold a stacktrace is fetched and a span is generated.

The goal of this issue is to cleanup this implementation and to provide as an extension and feature of our otel distro.
In the future we might want to contribute this feature to the upsteam project.

Here is the branch of the implementation on my fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant