Skip to content

Commit

Permalink
Merge pull request #438 from NthPortal/SdkSpanBackendSuite-fix
Browse files Browse the repository at this point in the history
Fix `SdkSpanBackendSuite`
  • Loading branch information
iRevive authored Jan 18, 2024
2 parents 25cafa7 + c36a234 commit f975b41
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,23 @@ class SdkSpanBackendSuite extends CatsEffectSuite with ScalaCheckEffectSuite {
)

_ <- assertIO(
extra.toList.traverse(a => span.getAttribute(a.key)),
extra.view
.map(_.key)
.filterNot(init.contains)
.toList
.traverse(span.getAttribute(_)),
List.fill(extra.size)(None)
)

// add attributes
_ <- span.addAttributes(extra.toList: _*)

_ <- assertIO(
init.toList.traverse(a => span.getAttribute(a.key)),
init.view
.map(_.key)
.filterNot(extra.contains)
.toList
.traverse(span.getAttribute(_)),
init.toList.map(v => Some(v.value))
)

Expand Down

0 comments on commit f975b41

Please sign in to comment.