Singleton
Extends:
The Singleton object is the default export of the package and extends the standard Tracer object so that the default exported object of the package can be conveniently be used both as the default tracer and an interface to the library.
Method Summary
| Public Methods | ||
| public |
initGlobalTracer(tracerImp: TracerImp) Set the global Tracer's underlying implementation. The behavior is undefined if this function is called more than once. |
|
| public |
initNewTracer(tracerImp: *): Tracer Create a new Tracer object with the given underlying implementation. |
|
Inherited Summary
| From class Tracer | ||
| public |
Request that any buffered or in-memory data is flushed out of the process. |
|
| public |
Handle to implementation object. |
|
| public |
Injects the information about the given span into the carrier so that the span can propogate across inter-process barriers. |
|
| public |
Returns a new Span object with the given operation name using the trace information from the carrier. |
|
| public |
Starts and returns a new Span representing a logical unit of work. |
|
Public Methods
public initGlobalTracer(tracerImp: TracerImp) source
Set the global Tracer's underlying implementation.
The behavior is undefined if this function is called more than once.
Params:
| Name | Type | Attribute | Description |
| tracerImp | TracerImp | the Tracer implementation object |