public interface DocumentedSpan
DocumentedSpan
interface - if the span contains TagKey or EventValue then those need
to be declared as nested enums - the getTagKeys() and
getEvents() need to call the nested enum's values()
method to retrieve the array of allowed keys / events| Modifier and Type | Method and Description |
|---|---|
default EventValue[] |
getEvents() |
String |
getName() |
default TagKey[] |
getTagKeys() |
default String |
prefix()
Returns required prefix to be there for events and tags.
|
default AssertingSpanBuilder |
wrap(Span.Builder span)
Asserts on tags, names and allowed events.
|
default AssertingSpan |
wrap(Span span)
Asserts on tags, names and allowed events.
|
default AssertingSpanCustomizer |
wrap(SpanCustomizer span)
Asserts on tags, names and allowed events.
|
String getName()
default TagKey[] getTagKeys()
default EventValue[] getEvents()
default String prefix()
foo. would
require the tags and events to have a {code foo} prefix like this for tags:
foo.bar=true and foo.started for events.default AssertingSpan wrap(Span span)
span - to wrapdefault AssertingSpanCustomizer wrap(SpanCustomizer span)
span - to wrapdefault AssertingSpanBuilder wrap(Span.Builder span)
span - builder to wrapCopyright © 2021 Pivotal Software, Inc.. All rights reserved.