Interface PluginTypes.RootSpan (8.0.0)

Represents the root span within a trace.

Inheritance

Span > PluginTypes.RootSpan

Package

@google-cloud/trace-agent

Methods

createChildSpan(options)

createChildSpan(options?: SpanOptions): Span;

Creates and starts a child span under this root span. If the root span is a real span (type = ROOT), the child span will be as well (type = CHILD). Otherwise, if the root span's type is UNTRACED or UNCORRELATED, the child span will be of the same type.

Parameter
NameDescription
options SpanOptions

Options for creating the child span.

Returns
TypeDescription
Span

A new Span object.