Last active
January 28, 2022 02:24
-
-
Save vvillschneider/0e3530c582f7b6e8696c553bba9ab5ed to your computer and use it in GitHub Desktop.
Enabling BlockHound to identify blocking code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static { | |
BlockHound.install(builder -> { | |
builder.blockingMethodCallback(it -> { | |
new Error(it.toString()).printStackTrace(); | |
}); | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ext { | |
blockHoundVersion = '1.0.4.RELEASE' | |
} | |
dependencies { | |
implementation "io.projectreactor.tools:blockhound:${blockHoundVersion}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment