Skip to content

Commit

Permalink
fix rxjava tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Rzeszutek committed Jul 25, 2022
1 parent 7772362 commit 5581127
Show file tree
Hide file tree
Showing 2 changed files with 138 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import io.opentelemetry.instrumentation.rxjava.v2_0.TracedWithSpan
import io.opentelemetry.instrumentation.test.AgentInstrumentationSpecification
import io.opentelemetry.semconv.trace.attributes.SemanticAttributes
import io.reactivex.Completable
import io.reactivex.Flowable
import io.reactivex.Maybe
Expand Down Expand Up @@ -43,6 +44,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "completable"
}
}
}
Expand Down Expand Up @@ -72,6 +75,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "completable"
}
}
}
Expand All @@ -98,6 +103,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
status ERROR
errorEvent(IllegalArgumentException, "Boom")
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "completable"
}
}
}
Expand Down Expand Up @@ -130,6 +137,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
status ERROR
errorEvent(IllegalArgumentException, "Boom")
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "completable"
}
}
}
Expand Down Expand Up @@ -158,6 +167,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "completable"
"rxjava.canceled" true
}
}
Expand All @@ -183,6 +194,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "maybe"
}
}
}
Expand All @@ -206,6 +219,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "maybe"
}
}
}
Expand Down Expand Up @@ -236,6 +251,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "maybe"
}
}
}
Expand All @@ -262,6 +279,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
status ERROR
errorEvent(IllegalArgumentException, "Boom")
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "maybe"
}
}
}
Expand Down Expand Up @@ -294,6 +313,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
status ERROR
errorEvent(IllegalArgumentException, "Boom")
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "maybe"
}
}
}
Expand Down Expand Up @@ -322,6 +343,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "maybe"
"rxjava.canceled" true
}
}
Expand All @@ -347,6 +370,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "single"
}
}
}
Expand Down Expand Up @@ -377,6 +402,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "single"
}
}
}
Expand All @@ -403,6 +430,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
status ERROR
errorEvent(IllegalArgumentException, "Boom")
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "single"
}
}
}
Expand Down Expand Up @@ -435,6 +464,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
status ERROR
errorEvent(IllegalArgumentException, "Boom")
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "single"
}
}
}
Expand Down Expand Up @@ -463,6 +494,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "single"
"rxjava.canceled" true
}
}
Expand All @@ -488,6 +521,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "observable"
}
}
}
Expand Down Expand Up @@ -523,6 +558,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "observable"
}
}
}
Expand All @@ -549,6 +586,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
status ERROR
errorEvent(IllegalArgumentException, "Boom")
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "observable"
}
}
}
Expand Down Expand Up @@ -587,6 +626,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
status ERROR
errorEvent(IllegalArgumentException, "Boom")
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "observable"
}
}
}
Expand Down Expand Up @@ -621,6 +662,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "observable"
"rxjava.canceled" true
}
}
Expand All @@ -646,6 +689,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "flowable"
}
}
}
Expand Down Expand Up @@ -681,6 +726,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "flowable"
}
}
}
Expand All @@ -707,6 +754,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
status ERROR
errorEvent(IllegalArgumentException, "Boom")
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "flowable"
}
}
}
Expand Down Expand Up @@ -745,6 +794,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
status ERROR
errorEvent(IllegalArgumentException, "Boom")
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "flowable"
}
}
}
Expand Down Expand Up @@ -779,6 +830,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "flowable"
"rxjava.canceled" true
}
}
Expand All @@ -805,6 +858,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "parallelFlowable"
}
}
}
Expand Down Expand Up @@ -841,6 +896,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "parallelFlowable"
}
}
}
Expand Down Expand Up @@ -868,6 +925,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
status ERROR
errorEvent(IllegalArgumentException, "Boom")
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "parallelFlowable"
}
}
}
Expand Down Expand Up @@ -907,6 +966,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
status ERROR
errorEvent(IllegalArgumentException, "Boom")
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "parallelFlowable"
}
}
}
Expand Down Expand Up @@ -942,6 +1003,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "parallelFlowable"
"rxjava.canceled" true
}
}
Expand Down Expand Up @@ -972,6 +1035,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "publisher"
}
}
}
Expand Down Expand Up @@ -1004,6 +1069,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
status ERROR
errorEvent(IllegalArgumentException, "Boom")
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "publisher"
}
}
}
Expand Down Expand Up @@ -1032,6 +1099,8 @@ class RxJava2WithSpanInstrumentationTest extends AgentInstrumentationSpecificati
kind INTERNAL
hasNoParent()
attributes {
"$SemanticAttributes.CODE_NAMESPACE" TracedWithSpan.name
"$SemanticAttributes.CODE_FUNCTION" "publisher"
"rxjava.canceled" true
}
}
Expand Down
Loading

0 comments on commit 5581127

Please sign in to comment.