Class SpanDataMatchers
java.lang.Object
org.apache.hadoop.hbase.client.trace.hamcrest.SpanDataMatchers
Helper methods for matching against instances of
SpanData
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData>
hasAttributes
(org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes> matcher) static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData>
hasDuration
(org.hamcrest.Matcher<Duration> matcher) static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData>
hasEnded()
static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData>
hasEvents
(org.hamcrest.Matcher<Iterable<? super io.opentelemetry.sdk.trace.data.EventData>> matcher) static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData>
hasException
(org.hamcrest.Matcher<? super io.opentelemetry.api.common.Attributes> matcher) static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData>
hasExceptionWithType
(org.hamcrest.Matcher<? super String> matcher) static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData>
hasKind
(io.opentelemetry.api.trace.SpanKind kind) static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData>
static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData>
static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData>
hasParentSpanId
(io.opentelemetry.sdk.trace.data.SpanData parent) static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData>
hasParentSpanId
(String parentSpanId) static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData>
hasParentSpanId
(org.hamcrest.Matcher<String> matcher) static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData>
hasStatusWithCode
(io.opentelemetry.api.trace.StatusCode statusCode) static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData>
hasStatusWithCode
(org.hamcrest.Matcher<io.opentelemetry.api.trace.StatusCode> matcher) static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData>
hasTraceId
(String traceId) static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData>
hasTraceId
(org.hamcrest.Matcher<String> matcher)
-
Constructor Details
-
SpanDataMatchers
private SpanDataMatchers()
-
-
Method Details
-
hasAttributes
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasAttributes(org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes> matcher) -
hasDuration
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasDuration(org.hamcrest.Matcher<Duration> matcher) -
hasEnded
-
hasEvents
-
hasExceptionWithType
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasExceptionWithType(org.hamcrest.Matcher<? super String> matcher) -
hasException
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasException(org.hamcrest.Matcher<? super io.opentelemetry.api.common.Attributes> matcher) -
hasKind
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasKind(io.opentelemetry.api.trace.SpanKind kind) -
hasName
-
hasName
-
hasParentSpanId
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasParentSpanId(String parentSpanId) -
hasParentSpanId
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasParentSpanId(io.opentelemetry.sdk.trace.data.SpanData parent) -
hasParentSpanId
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasParentSpanId(org.hamcrest.Matcher<String> matcher) -
hasStatusWithCode
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasStatusWithCode(org.hamcrest.Matcher<io.opentelemetry.api.trace.StatusCode> matcher) -
hasStatusWithCode
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasStatusWithCode(io.opentelemetry.api.trace.StatusCode statusCode) -
hasTraceId
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasTraceId(String traceId) -
hasTraceId
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasTraceId(org.hamcrest.Matcher<String> matcher)
-