export cats effect MBean stats by setting sys prop or dropping a dependency #703
Closed
swapdonkey
started this conversation in
Ideas
Replies: 3 comments 1 reply
-
|
I see theres already a PR from quite a while back for a draft implementation - #173 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hey! The #173 relies on the non-released functionality in cats-effect. And I'm unsure whether it would be merged at all in the foreseen future. I guess we can provide cats-effect metrics reading MBean data. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Here is a draft implementation: typelevel/otel4s-experimental#2. The plan is the following:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Maybe I should of posted this on #575 but it would be good if otel4s integrated with cats effect MBeans/metrics and could publish the cats effect stats that are available in the following MBeans
https://github.com/typelevel/cats-effect/blob/series/3.x/core/jvm/src/main/scala/cats/effect/metrics/CpuStarvationMbean.scala
https://github.com/typelevel/cats-effect/blob/series/3.x/core/jvm/src/main/scala/cats/effect/unsafe/metrics/ComputePoolSamplerMBean.scala
https://github.com/typelevel/cats-effect/blob/series/3.x/core/jvm/src/main/scala/cats/effect/unsafe/metrics/LocalQueueSamplerMBean.scala
At the moment we're having to use https://github.com/open-telemetry/opentelemetry-java-contrib/blob/main/jmx-metrics/README.md to gather the cats effect metrics and publish to a local otel collector which isn't the best solution.
It would be a good incentive for cats effect users to use otel4s too.
Beta Was this translation helpful? Give feedback.
All reactions