Trace Parameters
A text annotation with a set of attributes.
A set of attributes, each in the format [KEY]:[VALUE]
The number of dropped annotations.
The number of dropped attributes.
The number of dropped links.
The number of dropped message events.
Gives a timestap that indicates the span's duration in RFC3339 UTC "Zulu" format.
Gives a timestap that indicates the span's end time in RFC3339 UTC "Zulu" format.
Indicates if span was ended.
The Span ID of this span
Kind of span.
Pointers from the current span to another span
An object to log information to
An event describing a message sent/received between Spans.
The resource name of the span
The number of direct children
The span ID of this span's parent. If it's a root span, must be empty
If the parent span is in another process.
Gives the TraceContext of the span.
The list of immediate child spans.
Gives a timestap that indicates the span's start time in RFC3339 UTC "Zulu" format.
Indicates if span was started.
A final status for this span
Trace id asscoiated with span.
Trace state associated with span
Adds an annotation to the span.
Describes the event.
A set of attributes on the annotation.
A timestamp for this event.
Adds an atribute to the span.
Describes the value added.
The result of an operation.
Adds an event to the Span.
the name of the event.
Adds a link to the span.
The trace ID for a trace within a project.
The span ID for a span within a trace.
The relationship of the current span relative to the linked.
A set of attributes on the link.
Adds a link to the Span.
the context of the linked span.
Adds a message event to the span.
The type of message event.
An identifier for the message event.
A timestamp for this event.
The number of uncompressed bytes sent or received.
The number of compressed bytes sent or received. If zero or undefined, assumed to be the same size as uncompressed.
Recursively gets the descendant spans.
Returns the SpanContext object associated with this Span.
the SpanContext object associated with this Span.
Ends a span and all of its children, recursively.
Marks the end of Span execution.
Call to End of a Span MUST not have any effects on child spans. Those may still be running and can be ended later.
Do not return this
. The Span generally should not be used after it
is ended so chaining is not desired in this context.
Returns the flag whether this span will be recorded.
true if this Span is active and recording information like events with the AddEvent operation and attributes using setAttributes.
Sets an attribute to the span.
the key for this attribute.
the value for this attribute.
Sets attributes to the span.
the attributes that will be added.
Sets a status to the span.
The canonical status code.
optional A developer-facing error message.
Sets a status to the span. If used, this will override the default Span status. Default is CanonicalCode.OK.
the Status to set.
Starts a span.
Starts a new Span instance as a child of this instance
Forces to end a span.
Updates the Span name.
TODO (revision): https://github.com/open-telemetry/opentelemetry-specification/issues/119
the Span name.
Generated using TypeDoc
Interface for Span An interface that represents a span. A span represents a single operation within a trace. Examples of span might include remote procedure calls or a in-process function calls to sub-components. A Trace has a single, top-level "root" Span that in turn may have zero or more child Spans, which in turn may have children.