public final class SpanDataMatchers extends Object
SpanData
.Modifier | Constructor and Description |
---|---|
private |
SpanDataMatchers() |
Modifier and Type | Method and Description |
---|---|
static 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> |
hasName(org.hamcrest.Matcher<String> matcher) |
static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> |
hasName(String name) |
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> |
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> |
hasStatusWithCode(org.hamcrest.Matcher<io.opentelemetry.api.trace.StatusCode> 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> |
hasTraceId(org.hamcrest.Matcher<String> matcher) |
static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> |
hasTraceId(String traceId) |
private SpanDataMatchers()
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasAttributes(org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes> matcher)
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasDuration(org.hamcrest.Matcher<Duration> matcher)
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasEnded()
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasEvents(org.hamcrest.Matcher<Iterable<? super io.opentelemetry.sdk.trace.data.EventData>> matcher)
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasExceptionWithType(org.hamcrest.Matcher<? super String> matcher)
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasException(org.hamcrest.Matcher<? super io.opentelemetry.api.common.Attributes> matcher)
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasKind(io.opentelemetry.api.trace.SpanKind kind)
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasName(String name)
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasName(org.hamcrest.Matcher<String> matcher)
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasParentSpanId(String parentSpanId)
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasParentSpanId(io.opentelemetry.sdk.trace.data.SpanData parent)
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasParentSpanId(org.hamcrest.Matcher<String> matcher)
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasStatusWithCode(org.hamcrest.Matcher<io.opentelemetry.api.trace.StatusCode> matcher)
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasStatusWithCode(io.opentelemetry.api.trace.StatusCode statusCode)
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasTraceId(String traceId)
public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasTraceId(org.hamcrest.Matcher<String> matcher)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.