File tree 1 file changed +1
-12
lines changed
modules/datadog/src/main/scala
1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import io.opentracing.propagation.{Format, TextMapAdapter}
15
15
import io .opentracing .tag .Tags
16
16
import natchez .TraceValue .{BooleanValue , NumberValue , StringValue }
17
17
import _root_ .datadog .trace .api .DDTags
18
- import _root_ .datadog .trace .api .interceptor .MutableSpan
19
18
import natchez .Span .Options
20
19
import natchez .datadog .DDTracer .{addLink , addSpanKind }
21
20
@@ -101,17 +100,7 @@ final case class DDSpan[F[_]: Sync](
101
100
DDTags .ERROR_MSG -> err.getMessage,
102
101
DDTags .ERROR_TYPE -> err.getClass.getSimpleName,
103
102
DDTags .ERROR_STACK -> err.getStackTrace.mkString
104
- ) >> {
105
- // Set error on root span
106
- span match {
107
- case ms : MutableSpan =>
108
- Sync [F ].delay {
109
- val localRootSpan = ms.getLocalRootSpan
110
- localRootSpan.setError(true )
111
- }.void
112
- case _ => Sync [F ].unit
113
- }
114
- } >>
103
+ ) >>
115
104
Sync [F ].delay {
116
105
span.log(
117
106
(Map (
You can’t perform that action at this time.
0 commit comments