diff --git a/Sources/OpenTelemetryApi/Trace/Span.swift b/Sources/OpenTelemetryApi/Trace/Span.swift index 997c5ae5..e58cc8c8 100644 --- a/Sources/OpenTelemetryApi/Trace/Span.swift +++ b/Sources/OpenTelemetryApi/Trace/Span.swift @@ -113,7 +113,7 @@ public extension SpanBase { hasher.combine(context.spanId) } - static func == (lhs: SpanBase, rhs: SpanBase) -> Bool { + static func == (lhs: Self, rhs: Self) -> Bool { return lhs.context.spanId == rhs.context.spanId } }