Interface AssertingSpanCustomizer
- All Superinterfaces:
SpanCustomizer
A
SpanCustomizer that can perform assertions on itself.- Since:
- 3.1.0
- Author:
- Marcin Grzejszczak
-
Method Summary
Modifier and TypeMethodDescriptiondefault AssertingSpanCustomizerSets an event on a span.default AssertingSpanCustomizerevent(EventValue value) Sets an event on a span.default AssertingSpanCustomizerSets a name on a span.static AssertingSpanCustomizerof(DocumentedSpan documentedSpan, SpanCustomizer span) default AssertingSpanCustomizerSets a tag on a span.default AssertingSpanCustomizerSets a tag on a span.static <T extends SpanCustomizer>
Tunwrap(SpanCustomizer span) Returns the underlying delegate.
-
Method Details
-
getDocumentedSpan
DocumentedSpan getDocumentedSpan()- Returns:
- a
DocumentedSpanwith span configuration
-
getDelegate
SpanCustomizer getDelegate()- Returns:
- wrapped
SpanCustomizer
-
tag
Description copied from interface:SpanCustomizerSets a tag on a span.- Specified by:
tagin interfaceSpanCustomizer- Parameters:
key- tag keyvalue- tag value- Returns:
- this, for chaining
-
tag
Sets a tag on a span.- Parameters:
key- tag keyvalue- tag- Returns:
- this, for chaining
-
event
Description copied from interface:SpanCustomizerSets an event on a span.- Specified by:
eventin interfaceSpanCustomizer- Parameters:
value- event name- Returns:
- this, for chaining
-
event
Sets an event on a span.- Parameters:
value- event- Returns:
- this, for chaining
-
name
Description copied from interface:SpanCustomizerSets a name on a span.- Specified by:
namein interfaceSpanCustomizer- Parameters:
name- name to set on a span- Returns:
- this, for chaining
-
of
- Parameters:
documentedSpan- span configurationspan- span to wrap in assertions- Returns:
- asserting span customizer
-
unwrap
Returns the underlying delegate. Used when casting is necessary.- Type Parameters:
T- type extending a span- Parameters:
span- span to check for wrapping- Returns:
- unwrapped object
-