Interface PluginTypes.RootSpan

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
TypeNameDescription
SpanOptionsoptions

Options for creating the child span.

Returns
TypeDescription
Span

A new Span object.