Class SpanDataMatchers

java.lang.Object
org.apache.hadoop.hbase.client.trace.hamcrest.SpanDataMatchers

public final class SpanDataMatchers extends Object
Helper methods for matching against instances of SpanData.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    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>
     
    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>
    hasName(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>
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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

      public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasEnded()
    • hasEvents

      public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasEvents(org.hamcrest.Matcher<Iterable<? super io.opentelemetry.sdk.trace.data.EventData>> matcher)
    • 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

      public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasName(String name)
    • hasName

      public static org.hamcrest.Matcher<io.opentelemetry.sdk.trace.data.SpanData> hasName(org.hamcrest.Matcher<String> matcher)
    • 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)