Skip to content

Commit

Permalink
fixup! Partially redesign Attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
NthPortal committed Mar 1, 2024
1 parent 5bd717a commit 995cbf1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,10 @@ class SdkSpanBackendSuite extends CatsEffectSuite with ScalaCheckEffectSuite {
test(".getAttribute(:AttributeKey)") {
PropF.forAllF { (init: Attributes, extraAttrs: Attributes) =>
// 'init' and 'extra' may have attributes under the same key. we need only unique keys in extra
val extra = extraAttrs.filterNot(a => init.get(a.key).isDefined)
val extra = {
val initMap = init.toMap
extraAttrs.filterNot(a => initMap.contains(a.key.name))
}

for {
span <- start(attributes = init)
Expand Down

0 comments on commit 995cbf1

Please sign in to comment.