otel4s-doobie
Installation
This library is currently available for Scala binary versions 2.13 and 3.3+.
To use the latest version, include the following in your build.sbt
:
libraryDependencies += "io.github.arturaz" %% "otel4s-doobie" % "0.2.0"
Or build.mill
if you are using mill:
override def ivyDeps = Agg(
ivy"io.github.arturaz::otel4s-doobie:0.2.0"
)
The code from main
branch can be obtained with:
resolvers ++= Resolver.sonatypeOssRepos("snapshots")
libraryDependencies += "io.github.arturaz" %% "otel4s-doobie" % "0.2.0-1-28bfac1-SNAPSHOT"
For mill:
override def repositoriesTask = T.task {
super.repositoriesTask() ++ Seq(
coursier.Repositories.sonatype("snapshots")
)
}
override def ivyDeps = Agg(
ivy"io.github.arturaz::otel4s-doobie:0.2.0-1-28bfac1-SNAPSHOT"
)
You can see all the published artifacts on MVN Repository.
Usage
import doobie._
import doobie.otel4s._
import cats.effect.Async
import org.typelevel.otel4s.trace.Tracer
def makeTraced[F[_] : Async : Tracer](transactor: Transactor[F]): Transactor[F] = {
/** Also see `TracedTransactor.Config` for various configuration options. */
TracedTransactor[F](transactor, LogHandler.noop)
}
Credits
This library was created by Artūras Šlajus. You can find me as arturaz
on the
Typelevel Discord Server in the #doobie
channel.
Changelog
v0.2.0
- Upgraded Doobie from
1.0.0-RC5
to1.0.0-RC8
.
v0.1.0
- Initial release.