@@ -2,7 +2,7 @@ package com.colisweb.tracing.context
2
2
3
3
import cats .data .OptionT
4
4
import cats .effect ._
5
- import cats .effect .concurrent .Ref
5
+ import cats .effect .kernel .Ref
6
6
import cats .syntax .all ._
7
7
import com .colisweb .tracing .core ._
8
8
import com .typesafe .scalalogging .StrictLogging
@@ -15,7 +15,7 @@ import scala.concurrent.duration.MILLISECONDS
15
15
* The traces will be emitted with a TRACE level, so make sure to configure your logging backend
16
16
* to ennable the TRACE level for com.colisweb.tracing
17
17
*/
18
- class LoggingTracingContext [F [_]: Sync : Timer ](
18
+ class LoggingTracingContext [F [_]: Sync ](
19
19
traceIdP : String ,
20
20
spanIdP : String ,
21
21
tagsRef : Ref [F , Tags ],
@@ -41,7 +41,7 @@ object LoggingTracingContext extends StrictLogging {
41
41
/** Returns a Resource[F, TracingContext[F]]. The first log will be emitted
42
42
* as the resource is acquired, the second log when it is released.
43
43
*/
44
- def apply [F [_]: Sync : Timer ](
44
+ def apply [F [_]: Sync ](
45
45
parentContext : Option [LoggingTracingContext [F ]] = None ,
46
46
idGenerator : Option [F [String ]] = None ,
47
47
slf4jLogger : org.slf4j.Logger = logger.underlying,
@@ -52,7 +52,7 @@ object LoggingTracingContext extends StrictLogging {
52
52
): TracingContextResource [F ] =
53
53
resource(parentContext, idGenerator, slf4jLogger, operationName, correlationId).evalMap(ctx => ctx.addTags(tags).map(_ => ctx))
54
54
55
- private def resource [F [_]: Sync : Timer ](
55
+ private def resource [F [_]: Sync ](
56
56
parentContext : Option [LoggingTracingContext [F ]],
57
57
idGenerator : Option [F [String ]],
58
58
slf4jLogger : org.slf4j.Logger ,
@@ -109,7 +109,7 @@ object LoggingTracingContext extends StrictLogging {
109
109
* This is provided for convenience and consistency with regards to the other
110
110
* tracing contexts types.
111
111
*/
112
- def builder [F [_]: Sync : Timer ]: F [TracingContextBuilder [F ]] =
112
+ def builder [F [_]: Sync ]: F [TracingContextBuilder [F ]] =
113
113
Sync [F ].delay((operationName : String , tags : Tags , correlationId : String ) =>
114
114
LoggingTracingContext .apply(correlationId = correlationId)(operationName, tags)
115
115
)
0 commit comments