Constructs a new TraceWriter instance.
A config object containing information about authorization credentials.
The Trace Agent's logger object.
Stringified traces to be published
Default labels to be attached to written spans
Whether the trace writer is active
Serializes the buffered traces to be published asynchronously.
Publishes flushed traces to the network.
The stringified json representation of the queued traces.
Buffers the provided trace to be published.
The trace to be queued.
Make an authenticated API request.
Request options that are passed to request
.
Make an authenticated API request.
Request options that are passed to request
.
Make an authenticated API request.
Request options that are passed to request
.
Flushes the buffer of traces at a regular interval controlled by the flushDelay property of this TraceWriter's config.
Ensures that all sub spans of the provided Trace object are closed and then queues the span data to be published.
The trace to be queued.
Generated using TypeDoc
A class representing a service that publishes traces in the background.