Skip to main content

%Trace.Context

class %Trace.Context extends %Library.RegisteredObject

Context object allows for management of implicit Span propagation. The ActiveSpan will be automaticaly used as the Parent of any new Spans.

Property Inventory

Method Inventory

Properties

property ActiveSpan as %Trace.Span;
Span object to be used as Parent of new Span. This can be set implicitly by calling Tracer.SetActiveSpan(). Or, user may pass a Context object with a valid ActiveSpan as Parent to Tracer.StartSpan.
Property methods: ActiveSpanGet(), ActiveSpanGetSwizzled(), ActiveSpanIsValid(), ActiveSpanNewObject(), ActiveSpanSet()

Methods

classmethod GetActiveSpan() as %Trace.Span
Returns a Span object for the current ActiveSpan.
classmethod GetCurrentContext() as %Trace.Context
Returns a Context object with the current ActiveSpan.

Inherited Members

Inherited Methods

FeedbackOpens in a new tab