%Trace.Tracer
class %Trace.Tracer extends %Trace.AbstractTracer
A Tracer object allows you to start a Span. A Tracer object MUST be created by calling TracerProvider.GetTracer().Method Inventory
Methods
method SetActiveSpan(Span As %Trace.Span) as %Trace.Scope
Set a Span as the ActiveSpan. Subsequent calls to StartSpan will use the ActiveSpan
as the Parent if no Parent is specified.
This returns a Scope object to manage the lifetime of the ActiveSpan. The Span remains active as long as the Scope object remains in memory (or until it is replaced by a new ActiveSpan). When the Scope object is destroyed, the previous ActiveSpan becomes the current ActiveSpan.
This returns a Scope object to manage the lifetime of the ActiveSpan. The Span remains active as long as the Scope object remains in memory (or until it is replaced by a new ActiveSpan). When the Scope object is destroyed, the previous ActiveSpan becomes the current ActiveSpan.
method StartSpan(Name As %String, Parent As %Trace.Context = "", Spankind As %String = "Internal", Attributes As %String, StartTime As %String = $zts) as %Trace.AbstractSpan
Initialize a Span object. Span objects should only be created by calling StartSpan.
'Attributes' should be passed by reference as an array, e.g. Attribute("key")="value".
'StartTime is in $ZTS format, and defaults to the current time.
'Name' is required.
Inherited Members
Inherited Properties
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()