Skip to content

Commit 1055ca0

Browse files
committed
chore(deps): update otel4s to 0.12.0
1 parent 1bffb54 commit 1055ca0

4 files changed

Lines changed: 13 additions & 4 deletions

File tree

modules/core/src/main/scala/pillars/Observability.scala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import cats.effect.Async
99
import cats.effect.LiftIO
1010
import cats.effect.Resource
1111
import cats.effect.std.Console
12+
import cats.effect.std.Env
13+
import cats.effect.std.SystemProperties
1214
import cats.effect.syntax.all.*
1315
import cats.syntax.all.*
1416
import io.circe.Codec
@@ -54,7 +56,10 @@ object Observability:
5456
def noop[F[_]: LiftIO: Async]: F[Observability[F]] =
5557
Observability(Tracer.noop[F], Meter.noop[F], EndpointInterceptor.noop[F]).pure[F]
5658

57-
def init[F[_]: LiftIO: Async: Parallel: Console](appInfo: AppInfo, config: Config): Resource[F, Observability[F]] =
59+
def init[F[_]: LiftIO: Async: Parallel: Console: Env: SystemProperties](
60+
appInfo: AppInfo,
61+
config: Config
62+
): Resource[F, Observability[F]] =
5863
if config.isEnabled then
5964
for
6065
otel4s <- OpenTelemetrySdk.autoConfigured[F]: builder =>

modules/core/src/main/scala/pillars/Pillars.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ package pillars
77
import cats.Parallel
88
import cats.effect.*
99
import cats.effect.std.Console
10+
import cats.effect.std.Env
11+
import cats.effect.std.SystemProperties
1012
import cats.syntax.all.*
1113
import fs2.io.file.Path
1214
import fs2.io.net.Network
@@ -77,7 +79,7 @@ object Pillars:
7779
* @param path The path to the configuration file.
7880
* @return a resource that will create a new instance of Pillars.
7981
*/
80-
def apply[F[_]: LiftIO: Async: Console: Network: Parallel](
82+
def apply[F[_]: LiftIO: Async: Console: Network: Parallel: Env: SystemProperties](
8183
infos: AppInfo,
8284
modules: Seq[ModuleSupport],
8385
path: Path

modules/core/src/main/scala/pillars/app.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ package pillars
77
import cats.Parallel
88
import cats.effect.{IOApp as CEIOApp, *}
99
import cats.effect.std.Console
10+
import cats.effect.std.Env
11+
import cats.effect.std.SystemProperties
1012
import cats.syntax.all.*
1113
import com.monovore.decline.Command
1214
import com.monovore.decline.Opts
@@ -19,7 +21,7 @@ import pillars.App.Name
1921
import pillars.App.Version
2022
import pillars.probes.Probe
2123

22-
abstract class App[F[_]: LiftIO: Async: Console: Network: Parallel](val modules: ModuleSupport*):
24+
abstract class App[F[_]: LiftIO: Async: Console: Network: Parallel: Env: SystemProperties](val modules: ModuleSupport*):
2325
def infos: AppInfo
2426
def probes: List[Probe[F]] = Nil
2527
def adminControllers: List[Controller[F]] = Nil

project/Dependencies.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ object versions {
1818
val iron = "2.6.0"
1919
val literally = "1.2.0"
2020
val openApiCirce = "0.11.3"
21-
val otel4s = "0.11.2"
21+
val otel4s = "0.12.0"
2222
val postgresqlDriver = "42.7.5"
2323
val rediculous = "0.5.1"
2424
val scribe = "3.16.0"

0 commit comments

Comments
 (0)