File tree Expand file tree Collapse file tree
modules/core/src/main/scala/pillars Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ import cats.effect.Async
99import cats .effect .LiftIO
1010import cats .effect .Resource
1111import cats .effect .std .Console
12+ import cats .effect .std .Env
13+ import cats .effect .std .SystemProperties
1214import cats .effect .syntax .all .*
1315import cats .syntax .all .*
1416import 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 =>
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ package pillars
77import cats .Parallel
88import cats .effect .*
99import cats .effect .std .Console
10+ import cats .effect .std .Env
11+ import cats .effect .std .SystemProperties
1012import cats .syntax .all .*
1113import fs2 .io .file .Path
1214import 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
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ package pillars
77import cats .Parallel
88import cats .effect .{IOApp as CEIOApp , * }
99import cats .effect .std .Console
10+ import cats .effect .std .Env
11+ import cats .effect .std .SystemProperties
1012import cats .syntax .all .*
1113import com .monovore .decline .Command
1214import com .monovore .decline .Opts
@@ -19,7 +21,7 @@ import pillars.App.Name
1921import pillars .App .Version
2022import 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
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments