We can generate documentation for all created spans but certain requirements need to be met
SpanDocumentation interfaceKeyName then those need to be declared as nested
enumsEventValue then those need to be declared as nested
enumsSpanDocumentation#getKeyNames() need to call the nested enum's
values() method to retrieve the array of allowed keysSpanDocumentation#getEvents() need to call the nested enum's
values() method to retrieve the array of allowed events| Modifier and Type | Field and Description |
|---|---|
| public static final KeyName[] | EMPTY_KEY_NAMES
Empty key names. |
| public static final EventValue[] | EMPTY_VALUES
Empty values. |
| Modifier and Type | Method and Description |
|---|---|
| public default KeyName[] | Returns: additional key names - if set will append any key names coming fromSpanDocumentation#overridesDefaultSpanFrom()Additional key names. |
| public default EventValue[] | |
| public default KeyName[] | Returns: allowed key names - if set will override any key names coming fromSpanDocumentation#overridesDefaultSpanFrom()Allowed key names. |
| public String | |
| public default String | Returns: constructed namevariables to pass to vars)String#format(String, Object.Builds a name from provided vars. |
| public default String | |
| public default Enum | Returns: io. for which
you don't want to create a default span documentationOverride this when custom span should be documented instead of the default one. |
| EMPTY_KEY_NAMES | back to summary |
|---|---|
| public static final KeyName[] EMPTY_KEY_NAMES Empty key names. | |
| EMPTY_VALUES | back to summary |
|---|---|
| public static final EventValue[] EMPTY_VALUES Empty values. | |
| getAdditionalKeyNames | back to summary |
|---|---|
| public default KeyName[] getAdditionalKeyNames() Additional key names.
| |
| getEvents | back to summary |
|---|---|
| public default EventValue[] getEvents() Allowed events.
| |
| getKeyNames | back to summary |
|---|---|
| public default KeyName[] getKeyNames() Allowed key names.
| |
| getName | back to summary |
|---|---|
| public String getName() Span name.
| |
| getName | back to summary |
|---|---|
| public default String getName(String... vars) Builds a name from provided vars. Follows the
| |
| getPrefix | back to summary |
|---|---|
| public default String getPrefix() Returns required prefix to be there for tags. For example,
| |
| overridesDefaultSpanFrom | back to summary |
|---|---|
| public default Enum Override this when custom span should be documented instead of the default one.
| |