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

Draft integration with IORuntimeMetrics #173

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

iRevive
Copy link
Contributor

@iRevive iRevive commented Apr 11, 2023

The dirty implementation based on typelevel/cats-effect#3317.

The output is:

// compute
active-thread-count          = value=1
worker-thread-count          = value=8
blocker-worker-thread-count  = value=6
local-queue-fiber-count      = value=0
searching-thread-count       = value=0
suspended-fiber-count        = value=9

// starvation
cpu-starvation-count         = value=0
current-clock-drift-ms       = value=0
max-clock-drift-ms           = value=0

Once I come up with a more reasonable workload idea, the data should look better.

# Conflicts:
#	core/metrics/src/main/scala/org/typelevel/otel4s/metrics/Meter.scala
#	core/metrics/src/main/scala/org/typelevel/otel4s/metrics/ObservableInstrumentBuilder.scala
#	core/metrics/src/main/scala/org/typelevel/otel4s/metrics/ObservableUpDownCounter.scala
@@ -86,7 +86,7 @@ lazy val `core-metrics` = crossProject(JVMPlatform, JSPlatform, NativePlatform)
.settings(
name := "otel4s-core-metrics",
libraryDependencies ++= Seq(
"org.typelevel" %%% "cats-effect-kernel" % CatsEffectVersion,
"org.typelevel" %%% "cats-effect" % CatsEffectVersion,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Runtime metrics are living in the cats-effect module.

@iRevive
Copy link
Contributor Author

iRevive commented Jul 10, 2024

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

Successfully merging this pull request may close these issues.

1 participant