Skip to main content

%Trace.Provider

class %Trace.Provider extends %Library.RegisteredObject

Store and retrieve a TracerProvider singleton for this Namespace. An application can define a TracerProvider at startup, and then save it using this class. Then all instrumentation code can access the single TracerProvider to create a Tracer.

Note that this uses temporary storage in the Namespace in which it's created, so it must be initialized at each startup.

Method Inventory

Methods

classmethod GetTracerProvider() as %Trace.TracerProvider
Retrieve the default TracerProvider for this Namespace. If no default has been set, then a NoopTracerProvider is returned.
classmethod SetTracerProvider(Provider As %Trace.TracerProvider) as %Status
Save the default TracerProvider for this Namespace.

Inherited Members

Inherited Methods

FeedbackOpens in a new tab