-
Notifications
You must be signed in to change notification settings - Fork 15
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
Measure metrics using otel4s
#396
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is super cool. I have some bad feelings about the inc
s and dec
s and >>
and how they play with cancellation.
core/src/main/scala/org/typelevel/keypool/internal/Metrics.scala
Outdated
Show resolved
Hide resolved
core/src/main/scala/org/typelevel/keypool/internal/Metrics.scala
Outdated
Show resolved
Hide resolved
# Conflicts: # core/src/main/scala/org/typelevel/keypool/KeyPool.scala # core/src/main/scala/org/typelevel/keypool/KeyPoolBuilder.scala
core/.jvm/src/test/scala/org/typelevel/keypool/PoolMetricsSpec.scala
Outdated
Show resolved
Hide resolved
# Conflicts: # build.sbt # core/src/main/scala/org/typelevel/keypool/KeyPool.scala # core/src/main/scala/org/typelevel/keypool/KeyPoolBuilder.scala
# Conflicts: # build.sbt # core/shared/src/test/scala/org/typelevel/keypool/KeyPoolSpec.scala
otel4s
otel4s
# Conflicts: # build.sbt
Very nice PR! .. I see very useful for measuring acquire durations for skunk and ember http4s client connections. Would it also work for doobie ? And would this work for prometheus as well ? I guess implementing the What's needed to finish this one, maybe we can offer help. |
@Fristi We're still working towards a stable release of otel4s :) lots to do!
Does doobie do its own pooling? I would have thought this happens in the underlying JDBC connectors. |
Hikari is being used .. but @ChristopherDavenport wrote doobie-pool which is also keyedpool https://github.com/ChristopherDavenport/doobie-pool/blob/master/core/src/main/scala/io/chrisdavenport/doobiepool/PooledTransactor.scala |
# Conflicts: # .github/workflows/ci.yml # build.sbt
# Conflicts: # .github/workflows/ci.yml # build.sbt # core/shared/src/main/scala/org/typelevel/keypool/KeyPool.scala
otel4s
otel4s
The PR is ready to be reviewed. |
@danicheg could you please take a look? |
The otel4s is still in active development. While I expect the future releases of the As an alternative, we can move forward only with the |
Experimental integration with https://github.com/typelevel/otel4s.
The tests are green locally.