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
Name
Description
options
SpanOptions

Options for creating the child span.

Returns
Type
Description

A new Span object.

Design a Mobile Site
View Site in Mobile | Classic
Share by: