Interface ISpan (4.4.0)

public interface ISpan : IDisposable

A trace span.

Namespace

Google.Cloud.Diagnostics.Common

Assembly

Google.Cloud.Diagnostics.Common.dll

Remarks

The functions here, aside from Dispose(), do not need to be used in most cases. They need to be used when updating the current span in a disjoint thread.

NOTE: While it is possible to end a span in another thread any new spans after this may be in a poor state.

Methods

AnnotateSpan(Dictionary<String, String>)

void AnnotateSpan(Dictionary<string, string> labels)

Annotates the current span with the given labels.

Parameter
NameDescription
labelsDictionary<String, String>

Disposed()

bool Disposed()

True if the span has been disposed and ended.

Returns
TypeDescription
Boolean

SetStackTrace(StackTrace)

void SetStackTrace(StackTrace stackTrace)

Adds the given StackTrace to the current span.

Parameter
NameDescription
stackTraceStackTrace

SpanId()

ulong SpanId()

Gets span's id.

Returns
TypeDescription
UInt64