Class NoRecordEventsSpanImpl
java.lang.Object
io.opencensus.trace.Span
io.opencensus.implcore.trace.NoRecordEventsSpanImpl
-
Nested Class Summary
Nested classes/interfaces inherited from class Span
Span.Kind, Span.Options -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAnnotation(Annotation annotation) Adds an annotation to theSpan.voidaddAnnotation(String description, Map<String, AttributeValue> attributes) Adds an annotation to theSpan.voidAdds aLinkto theSpan.voidaddMessageEvent(MessageEvent messageEvent) Adds a MessageEvent to theSpan.(package private) static NoRecordEventsSpanImplcreate(SpanContext context) voidend(EndSpanOptions options) Marks the end ofSpanexecution with the given options.voidputAttribute(String key, AttributeValue value) Sets an attribute to theSpan.voidputAttributes(Map<String, AttributeValue> attributes) Sets a set of attributes to theSpan.voidSets theStatusto theSpan.Methods inherited from class Span
addAnnotation, addAttributes, addNetworkEvent, end, getContext, getOptions
-
Field Details
-
NOT_RECORD_EVENTS_SPAN_OPTIONS
-
-
Constructor Details
-
NoRecordEventsSpanImpl
-
-
Method Details
-
create
-
addAnnotation
Description copied from class:SpanAdds an annotation to theSpan.- Specified by:
addAnnotationin classSpan- Parameters:
description- the description of the annotation time event.attributes- the attributes that will be added; these are associated with this annotation, not theSpanas forSpan.putAttributes(Map).
-
addAnnotation
Description copied from class:SpanAdds an annotation to theSpan.- Specified by:
addAnnotationin classSpan- Parameters:
annotation- the annotations to add.
-
putAttribute
Description copied from class:SpanSets an attribute to theSpan. If theSpanpreviously contained a mapping for the key, the old value is replaced by the specified value.- Overrides:
putAttributein classSpan- Parameters:
key- the key for this attribute.value- the value for this attribute.
-
putAttributes
Description copied from class:SpanSets a set of attributes to theSpan. The effect of this call is equivalent to that of callingSpan.putAttribute(String, AttributeValue)once for each element in the specified map.- Overrides:
putAttributesin classSpan- Parameters:
attributes- the attributes that will be added and associated with theSpan.
-
addMessageEvent
Description copied from class:SpanAdds a MessageEvent to theSpan.This function can be used by higher level applications to record messaging event.
This method should always be overridden by users whose API versions are larger or equal to
0.12.- Overrides:
addMessageEventin classSpan- Parameters:
messageEvent- the message to add.
-
addLink
-
setStatus
Description copied from class:SpanSets theStatusto theSpan.If used, this will override the default
Spanstatus. Default isStatus.OK.Only the value of the last call will be recorded, and implementations are free to ignore previous calls. If the status is set via
EndSpanOptions.Builder.setStatus(Status)that will always be the last call. -
end
Description copied from class:SpanMarks the end ofSpanexecution with the given options.Only the timing of the first end call for a given
Spanwill be recorded, and implementations are free to ignore all further calls.
-