added Undefined span kind

This commit is contained in:
Sergey Kanzhelev 2019-04-01 23:00:18 -07:00
parent 341bbd5ff2
commit 9096974f5f
2 changed files with 9 additions and 2 deletions

View File

@ -161,6 +161,13 @@ public abstract class Span {
* @since 0.1.0
*/
public enum Kind {
/**
* Undefined span kind.
*
* @since 0.1.0
*/
UNDEFINED,
/**
* Indicates that the span covers server-side handling of an RPC or other remote request.
*

View File

@ -149,7 +149,7 @@ public abstract class SpanBuilder {
* @return this.
* @since 0.1.0
*/
public SpanBuilder setSpanKind(@Nullable Span.Kind spanKind) {
public SpanBuilder setSpanKind(Span.Kind spanKind) {
return this;
}
@ -357,7 +357,7 @@ public abstract class SpanBuilder {
}
@Override
public SpanBuilder setSpanKind(@Nullable Span.Kind spanKind) {
public SpanBuilder setSpanKind(Span.Kind spanKind) {
return this;
}