8000 Instrument Java Websocket API (JSR356) by amarziali · Pull Request #8440 · DataDog/dd-trace-java · GitHub
[go: up one dir, main page]

Skip to content

Instrument Java Websocket API (JSR356) #8440

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Mar 10, 2025
Prev Previous commit
Next Next commit
add coverage for spanlinkattributes
  • Loading branch information
amarziali committed Mar 10, 2025
commit e6d51a27f251c417d2a9ae0ac4861a9e611f6196
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,18 @@ class SpanLinkTest extends Specification {
then:
notThrown(NullPointerException)
}

def "test span link attributes equals and hashcode"() {
when:
def a = SpanAttributes.builder().put("test", "value").build()
def b = SpanAttributes.builder().put("test", "value").build()
def c = SpanAttributes.builder().build()

then:
assert a == b
assert a != c
assert !c.equals(null)
assert a.hashCode() == b.hashCode()
assert a.hashCode() != c.hashCode()
}
}
0