A B C E F G H I N O R S T
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- after() - Method in class io.opentelemetry.sdk.testing.junit4.OpenTelemetryRule
- afterAll(ExtensionContext) - Method in class io.opentelemetry.sdk.testing.junit5.OpenTelemetryExtension
- assertThat(Attributes) - Static method in class io.opentelemetry.sdk.testing.assertj.OpenTelemetryAssertions
-
Returns an assertion for
Attributes
. - assertThat(EventData) - Static method in class io.opentelemetry.sdk.testing.assertj.OpenTelemetryAssertions
-
Returns an assertion for
EventDataAssert
. - assertThat(SpanData) - Static method in class io.opentelemetry.sdk.testing.assertj.OpenTelemetryAssertions
-
Returns an assertion for
SpanDataAssert
. - assertThat(Collection<List<SpanData>>) - Static method in class io.opentelemetry.sdk.testing.assertj.TracesAssert
-
Returns an assertion for a list of traces.
- assertTraces() - Method in class io.opentelemetry.sdk.testing.junit5.OpenTelemetryExtension
-
Returns a
TracesAssert
for asserting on the currently exported traces. - attributeEntry(String, boolean) - Static method in class io.opentelemetry.sdk.testing.assertj.OpenTelemetryAssertions
-
Returns an attribute entry with a boolean value for use with
AttributesAssert.containsOnly(java.util.Map.Entry[])
. - attributeEntry(String, boolean...) - Static method in class io.opentelemetry.sdk.testing.assertj.OpenTelemetryAssertions
-
Returns an attribute entry with a boolean array value for use with
AttributesAssert.containsOnly(java.util.Map.Entry[])
. - attributeEntry(String, double) - Static method in class io.opentelemetry.sdk.testing.assertj.OpenTelemetryAssertions
-
Returns an attribute entry with a double value for use with
AttributesAssert.containsOnly(java.util.Map.Entry[])
. - attributeEntry(String, double...) - Static method in class io.opentelemetry.sdk.testing.assertj.OpenTelemetryAssertions
-
Returns an attribute entry with a double array value for use with
AttributesAssert.containsOnly(java.util.Map.Entry[])
. - attributeEntry(String, long) - Static method in class io.opentelemetry.sdk.testing.assertj.OpenTelemetryAssertions
-
Returns an attribute entry with a long value for use with
AttributesAssert.containsOnly(java.util.Map.Entry[])
. - attributeEntry(String, long...) - Static method in class io.opentelemetry.sdk.testing.assertj.OpenTelemetryAssertions
-
Returns an attribute entry with a long array value for use with
AttributesAssert.containsOnly(java.util.Map.Entry[])
. - attributeEntry(String, String) - Static method in class io.opentelemetry.sdk.testing.assertj.OpenTelemetryAssertions
-
Returns an attribute entry with a String value for use with
AttributesAssert.containsOnly(java.util.Map.Entry[])
. - attributeEntry(String, String...) - Static method in class io.opentelemetry.sdk.testing.assertj.OpenTelemetryAssertions
-
Returns an attribute entry with a String array value for use with
AttributesAssert.containsOnly(java.util.Map.Entry[])
. - AttributesAssert - Class in io.opentelemetry.sdk.testing.assertj
-
Assertions for
Attributes
.
B
- before() - Method in class io.opentelemetry.sdk.testing.junit4.OpenTelemetryRule
- beforeAll(ExtensionContext) - Method in class io.opentelemetry.sdk.testing.junit5.OpenTelemetryExtension
- beforeEach(ExtensionContext) - Method in class io.opentelemetry.sdk.testing.junit5.OpenTelemetryExtension
- build() - Method in class io.opentelemetry.sdk.testing.trace.TestSpanData.Builder
-
Create a new SpanData instance from the data in this.
- builder() - Static method in class io.opentelemetry.sdk.testing.trace.TestSpanData
-
Creates a new Builder for creating an SpanData instance.
- Builder() - Constructor for class io.opentelemetry.sdk.testing.trace.TestSpanData.Builder
C
- clearSpans() - Method in class io.opentelemetry.sdk.testing.junit4.OpenTelemetryRule
-
Clears the collected exported
SpanData
. - clearSpans() - Method in class io.opentelemetry.sdk.testing.junit5.OpenTelemetryExtension
-
Clears the collected exported
SpanData
. - containsEntry(AttributeKey<T>, T) - Method in class io.opentelemetry.sdk.testing.assertj.AttributesAssert
-
Asserts the attributes have the given key and value.
- containsEntry(String, boolean) - Method in class io.opentelemetry.sdk.testing.assertj.AttributesAssert
-
Asserts the attributes have the given key and boolean value.
- containsEntry(String, double) - Method in class io.opentelemetry.sdk.testing.assertj.AttributesAssert
-
Asserts the attributes have the given key and double value.
- containsEntry(String, long) - Method in class io.opentelemetry.sdk.testing.assertj.AttributesAssert
-
Asserts the attributes have the given key and long value.
- containsEntry(String, Boolean...) - Method in class io.opentelemetry.sdk.testing.assertj.AttributesAssert
-
Asserts the attributes have the given key and boolean array value.
- containsEntry(String, Double...) - Method in class io.opentelemetry.sdk.testing.assertj.AttributesAssert
-
Asserts the attributes have the given key and double array value.
- containsEntry(String, Long...) - Method in class io.opentelemetry.sdk.testing.assertj.AttributesAssert
-
Asserts the attributes have the given key and long array value.
- containsEntry(String, String) - Method in class io.opentelemetry.sdk.testing.assertj.AttributesAssert
-
Asserts the attributes have the given key and string value.
- containsEntry(String, String...) - Method in class io.opentelemetry.sdk.testing.assertj.AttributesAssert
-
Asserts the attributes have the given key and string array value.
- containsEntryWithBooleanValuesOf(String, Iterable<Boolean>) - Method in class io.opentelemetry.sdk.testing.assertj.AttributesAssert
-
Asserts the attributes have the given key and boolean array value.
- containsEntryWithDoubleValuesOf(String, Iterable<Double>) - Method in class io.opentelemetry.sdk.testing.assertj.AttributesAssert
-
Asserts the attributes have the given key and double array value.
- containsEntryWithLongValuesOf(String, Iterable<Long>) - Method in class io.opentelemetry.sdk.testing.assertj.AttributesAssert
-
Asserts the attributes have the given key and long array value.
- containsEntryWithStringValuesOf(String, Iterable<String>) - Method in class io.opentelemetry.sdk.testing.assertj.AttributesAssert
-
Asserts the attributes have the given key and string array value.
- containsOnly(Map.Entry<? extends AttributeKey<?>, ?>...) - Method in class io.opentelemetry.sdk.testing.assertj.AttributesAssert
-
Asserts the attributes only contain the given entries.
- create() - Static method in class io.opentelemetry.sdk.testing.exporter.InMemorySpanExporter
-
Returns a new instance of the
InMemorySpanExporter
. - create() - Static method in class io.opentelemetry.sdk.testing.junit4.OpenTelemetryRule
-
Returns a
OpenTelemetryRule
with a default SDK initialized with an in-memory span exporter and W3C trace context propagation. - create() - Static method in class io.opentelemetry.sdk.testing.junit5.OpenTelemetryExtension
-
Returns a
OpenTelemetryExtension
with a default SDK initialized with an in-memory span exporter and W3C trace context propagation.
E
- endsAt(long) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span ends at the given epoch timestamp, in nanos.
- endsAt(long, TimeUnit) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span ends at the given epoch timestamp.
- endsAt(Instant) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span ends at the given epoch timestamp.
- EventDataAssert - Class in io.opentelemetry.sdk.testing.assertj
-
Assertions for
EventData
. - export(Collection<SpanData>) - Method in class io.opentelemetry.sdk.testing.exporter.InMemorySpanExporter
F
- flush() - Method in class io.opentelemetry.sdk.testing.exporter.InMemorySpanExporter
-
The InMemory exporter does not batch spans, so this method will immediately return with success.
G
- get() - Method in class io.opentelemetry.sdk.testing.context.SettableContextStorageProvider
- getContextStorage() - Static method in class io.opentelemetry.sdk.testing.context.SettableContextStorageProvider
-
Returns the current
ContextStorage
. - getFinishedSpanItems() - Method in class io.opentelemetry.sdk.testing.exporter.InMemorySpanExporter
-
Returns a
List
of the finishedSpan
s, represented bySpanData
. - getOpenTelemetry() - Method in class io.opentelemetry.sdk.testing.junit4.OpenTelemetryRule
-
Returns the
OpenTelemetrySdk
created by this extension. - getOpenTelemetry() - Method in class io.opentelemetry.sdk.testing.junit5.OpenTelemetryExtension
-
Returns the
OpenTelemetrySdk
created by this extension. - getSpans() - Method in class io.opentelemetry.sdk.testing.junit4.OpenTelemetryRule
-
Returns all the exported
SpanData
so far. - getSpans() - Method in class io.opentelemetry.sdk.testing.junit5.OpenTelemetryExtension
-
Returns all the exported
SpanData
so far.
H
- hasAttributes(Attributes) - Method in class io.opentelemetry.sdk.testing.assertj.EventDataAssert
-
Asserts the event has the given attributes.
- hasAttributes(Attributes) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has the given attributes.
- hasAttributesSatisfying(Consumer<Attributes>) - Method in class io.opentelemetry.sdk.testing.assertj.EventDataAssert
-
Asserts the event has attributes satisfying the given condition.
- hasAttributesSatisfying(Consumer<Attributes>) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has attributes satisfying the given condition.
- hasEnded() - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has ended.
- hasEnded() - Method in class io.opentelemetry.sdk.testing.trace.TestSpanData
- hasEntrySatisfying(AttributeKey<T>, Consumer<T>) - Method in class io.opentelemetry.sdk.testing.assertj.AttributesAssert
-
Asserts the attributes have the given key with a value satisfying the given condition.
- hasEvents(EventData...) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has the given events.
- hasEvents(Iterable<EventData>) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has the given events.
- hasEventsSatisfying(Consumer<List<? extends EventData>>) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has events satisfying the given condition.
- hasInstrumentationLibraryInfo(InstrumentationLibraryInfo) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has the given
InstrumentationLibraryInfo
. - hasKind(SpanKind) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has the given kind.
- hasLinks(LinkData...) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has the given links.
- hasLinks(Iterable<LinkData>) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has the given links.
- hasLinksSatisfying(Consumer<List<? extends LinkData>>) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has events satisfying the given condition.
- hasName(String) - Method in class io.opentelemetry.sdk.testing.assertj.EventDataAssert
-
Asserts the event has the given name.
- hasName(String) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has the given name.
- hasNotEnded() - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has not ended.
- hasParentSpanId(String) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has the given parent span ID.
- hasResource(Resource) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has the given
Resource
. - hasSpanId(String) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has the given span ID.
- hasSpansSatisfyingExactly(Consumer<SpanDataAssert>...) - Method in class io.opentelemetry.sdk.testing.assertj.TraceAssert
-
Asserts that the trace under assertion has the same number of spans as provided
assertions
and executes eachSpanDataAssert
inassertions
in order with the corresponding span. - hasStatus(StatusData) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has the given
StatusData
. - hasTimestamp(long) - Method in class io.opentelemetry.sdk.testing.assertj.EventDataAssert
-
Asserts the event has the given timestamp, in nanos.
- hasTimestamp(long, TimeUnit) - Method in class io.opentelemetry.sdk.testing.assertj.EventDataAssert
-
Asserts the event has the given timestamp.
- hasTimestamp(Instant) - Method in class io.opentelemetry.sdk.testing.assertj.EventDataAssert
-
Asserts the event has the given timestamp, in nanos.
- hasTotalAttributeCount(int) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has the given total attributes.
- hasTotalRecordedEvents(int) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has the given total recorded events.
- hasTotalRecordedLinks(int) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has the given total recorded links.
- hasTraceId(String) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has the given trace ID.
- hasTraceId(String) - Method in class io.opentelemetry.sdk.testing.assertj.TraceAssert
-
Asserts that the trace has the given trace ID.
- hasTracesSatisfyingExactly(Consumer<TraceAssert>...) - Method in class io.opentelemetry.sdk.testing.assertj.TracesAssert
-
Asserts that the traces under assertion have the same number of traces as provided
assertions
and executes eachTracesAssert
inassertions
in order with the corresponding trace. - hasTraceState(TraceState) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span has the given
TraceState
.
I
- InMemorySpanExporter - Class in io.opentelemetry.sdk.testing.exporter
-
A
SpanExporter
implementation that can be used to test OpenTelemetry integration. - io.opentelemetry.sdk.testing.assertj - package io.opentelemetry.sdk.testing.assertj
- io.opentelemetry.sdk.testing.context - package io.opentelemetry.sdk.testing.context
- io.opentelemetry.sdk.testing.exporter - package io.opentelemetry.sdk.testing.exporter
- io.opentelemetry.sdk.testing.junit4 - package io.opentelemetry.sdk.testing.junit4
- io.opentelemetry.sdk.testing.junit5 - package io.opentelemetry.sdk.testing.junit5
- io.opentelemetry.sdk.testing.trace - package io.opentelemetry.sdk.testing.trace
- isNotSampled() - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span is not sampled.
- isSampled() - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span is sampled.
N
- newAbstractIterableAssert(Iterable<? extends SpanData>) - Method in class io.opentelemetry.sdk.testing.assertj.TraceAssert
- newAbstractIterableAssert(Iterable<? extends List<SpanData>>) - Method in class io.opentelemetry.sdk.testing.assertj.TracesAssert
O
- OpenTelemetryAssertions - Class in io.opentelemetry.sdk.testing.assertj
-
Entry point for assertion methods for OpenTelemetry types.
- OpenTelemetryExtension - Class in io.opentelemetry.sdk.testing.junit5
-
A JUnit5 extension which sets up the
OpenTelemetrySdk
for testing, resetting state between tests. - OpenTelemetryRule - Class in io.opentelemetry.sdk.testing.junit4
-
A JUnit4 rule which sets up the
OpenTelemetrySdk
for testing, resetting state between tests.
R
- reset() - Method in class io.opentelemetry.sdk.testing.exporter.InMemorySpanExporter
-
Clears the internal
List
of finishedSpan
s.
S
- setAttributes(Attributes) - Method in class io.opentelemetry.sdk.testing.trace.TestSpanData.Builder
-
Set the attributes that are associated with this span, in the form of
Attributes
. - setContextStorage(ContextStorage) - Static method in class io.opentelemetry.sdk.testing.context.SettableContextStorageProvider
-
Sets the
ContextStorage
to use for future context operations. - setEndEpochNanos(long) - Method in class io.opentelemetry.sdk.testing.trace.TestSpanData.Builder
-
Set the end timestamp of the span.
- setEvents(List<EventData>) - Method in class io.opentelemetry.sdk.testing.trace.TestSpanData.Builder
-
Set timed events that are associated with this span.
- setHasEnded(boolean) - Method in class io.opentelemetry.sdk.testing.trace.TestSpanData.Builder
-
Sets to true if the span has been ended.
- setInstrumentationLibraryInfo(InstrumentationLibraryInfo) - Method in class io.opentelemetry.sdk.testing.trace.TestSpanData.Builder
-
Sets the instrumentation library of the tracer which created this span.
- setKind(SpanKind) - Method in class io.opentelemetry.sdk.testing.trace.TestSpanData.Builder
-
Set the kind of span.
- setLinks(List<LinkData>) - Method in class io.opentelemetry.sdk.testing.trace.TestSpanData.Builder
-
Set the links associated with this span.
- setName(String) - Method in class io.opentelemetry.sdk.testing.trace.TestSpanData.Builder
-
Set the name of the span.
- setParentSpanContext(SpanContext) - Method in class io.opentelemetry.sdk.testing.trace.TestSpanData.Builder
-
The parent span context associated for this span, which may be null.
- setResource(Resource) - Method in class io.opentelemetry.sdk.testing.trace.TestSpanData.Builder
-
Set the
Resource
associated with this span. - setSpanContext(SpanContext) - Method in class io.opentelemetry.sdk.testing.trace.TestSpanData.Builder
-
Set the
SpanContext
on this builder. - setStartEpochNanos(long) - Method in class io.opentelemetry.sdk.testing.trace.TestSpanData.Builder
-
Set the start timestamp of the span.
- setStatus(StatusData) - Method in class io.opentelemetry.sdk.testing.trace.TestSpanData.Builder
-
Set the status for this span.
- SettableContextStorageProvider - Class in io.opentelemetry.sdk.testing.context
-
A
ContextStorageProvider
which can have it'sContextStorage
set at any time. - SettableContextStorageProvider() - Constructor for class io.opentelemetry.sdk.testing.context.SettableContextStorageProvider
- setTotalAttributeCount(int) - Method in class io.opentelemetry.sdk.testing.trace.TestSpanData.Builder
-
Set the total number of attributes recorded on this span.
- setTotalRecordedEvents(int) - Method in class io.opentelemetry.sdk.testing.trace.TestSpanData.Builder
-
Set the total number of events recorded on this span.
- setTotalRecordedLinks(int) - Method in class io.opentelemetry.sdk.testing.trace.TestSpanData.Builder
-
Set the total number of links recorded on this span.
- shutdown() - Method in class io.opentelemetry.sdk.testing.exporter.InMemorySpanExporter
-
Clears the internal
List
of finishedSpanData
s. - SpanDataAssert - Class in io.opentelemetry.sdk.testing.assertj
-
Assertions for an exported
SpanData
. - startsAt(long) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span starts at the given epoch timestamp, in nanos.
- startsAt(long, TimeUnit) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span starts at the given epoch timestamp.
- startsAt(Instant) - Method in class io.opentelemetry.sdk.testing.assertj.SpanDataAssert
-
Asserts the span starts at the given epoch timestamp.
T
- TestSpanData - Class in io.opentelemetry.sdk.testing.trace
-
Immutable representation of all data collected by the
Span
class. - TestSpanData.Builder - Class in io.opentelemetry.sdk.testing.trace
-
A
Builder
class forTestSpanData
. - toAssert(SpanData, String) - Method in class io.opentelemetry.sdk.testing.assertj.TraceAssert
- toAssert(List<SpanData>, String) - Method in class io.opentelemetry.sdk.testing.assertj.TracesAssert
- TraceAssert - Class in io.opentelemetry.sdk.testing.assertj
-
Assertions for an exported trace, a list of
SpanData
with the same trace ID. - TracesAssert - Class in io.opentelemetry.sdk.testing.assertj
-
Assertions for a list of exported traces.
All Classes All Packages