5 threads (for the default singleton) can be created even when SlackConfig#statsEnabled is false #987
Labels
enhancement
M-T: A feature request for new functionality
project:slack-api-client
project:slack-api-client
Milestone
Developers can disable API clients' metrics management by setting
SlackConfig#statsEnabled
to false. Even in this case, the defaultSlackConfig
object creation (as a static field in the class) starts 5 threads and those threads are unused. See the repro steps below for details.Reproducible in:
any versions
The Slack SDK version
any versions
Java Runtime version
any versions
OS info
any versions
Steps to reproduce:
Running the following code and checking the thread dump.
Expected result:
No threads under a "slack-api-metrics" thread group are created.
Actual result:
5 threads for the default singleton SlackConfig instance are created.
The text was updated successfully, but these errors were encountered: