Returns a SpanContext instance extracted from carrier
in the given
format
.
The format of the carrier.
The carrier object.
The extracted SpanContext, or null if no such SpanContext could
be found in `carrier`
Create and return a string that can be included in the
of a document to enable RUM tracing to include it. The resulting string should not be cached.Initializes the tracer. This should be called before importing other libraries.
Injects the given SpanContext instance for cross-process propagation
within carrier
The SpanContext to inject into the carrier object. As a convenience, a Span instance may be passed in instead (in which case its .context() is used for the inject()).
The format of the carrier.
The carrier object.
Returns a reference to the current scope.
Sets the URL for the trace agent. This should only be called after init() is called, only in cases where the URL needs to be set after initialization.
Starts and returns a new Span representing a logical unit of work.
The name of the operation.
A new Span object.
Instruments a function by automatically creating a span activated on its scope.
The span will automatically be finished when one of these conditions is met:
If the orphanable
option is set to false, the function will not be traced
unless there is already an active span or childOf
option. Note that this
option is deprecated and has been removed in version 4.0.
Enable and optionally configure a plugin.
The name of a built-in plugin.
Configuration options. Can also be false
to disable the plugin.
Wrap a function to automatically create a span activated on its scope when it's called.
The span will automatically be finished when one of these conditions is met:
Generated using TypeDoc
Tracer is the entry-point of the Datadog tracing implementation.