Skip to content

Commit

Permalink
add check for span name
Browse files Browse the repository at this point in the history
  • Loading branch information
murki committed Dec 7, 2024
1 parent 8355f15 commit e0d9d5f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ class CaptureOkHttpEventListenerFactoryTest {
val httpRequestInfo = httpRequestInfoCapture.firstValue
val httpResponseInfo = httpResponseInfoCapture.firstValue
// common request fields
assertThat(httpRequestInfo.fields["_span_name"].toString()).isEqualTo("_http")
assertThat(httpRequestInfo.fields["_host"].toString()).isEqualTo("api.bitdrift.io")
assertThat(httpRequestInfo.fields["_host"].toString())
.isEqualTo(httpResponseInfo.fields["_host"].toString())
Expand Down

0 comments on commit e0d9d5f

Please sign in to comment.