public static final class EndSpanOptions.Builder extends Object
EndSpanOptions.| Modifier and Type | Method and Description |
|---|---|
EndSpanOptions |
build()
Builds and returns a
EndSpanOptions with the desired settings. |
EndSpanOptions.Builder |
setStatus(Status status)
Sets the status for the
Span. |
public EndSpanOptions.Builder setStatus(Status status)
Span.
If set, this will override the default Span status. Default is Status.OK.
status - the status.NullPointerException - if status is null.public EndSpanOptions build()
EndSpanOptions with the desired settings.EndSpanOptions with the desired settings.