| Constructor and Description |
|---|
SpanFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Span |
startSpan(Span parent,
String name,
StartSpanOptions options)
Creates and starts a new child
Span (or root if parent is null), with parent
being the designated Span and the given options. |
protected abstract Span |
startSpanWithRemoteParent(SpanContext remoteParent,
String name,
StartSpanOptions options)
Creates and starts a new child
Span (or root if parent is null), with parent
being the Span designated by the SpanContext and the given options. |
protected abstract Span startSpan(@Nullable Span parent, String name, StartSpanOptions options)
Span (or root if parent is null), with parent
being the designated Span and the given options.parent - The parent of the returned Span.name - The name of the returned Span.options - The options for the start of the Span.Span that will have the name provided.protected abstract Span startSpanWithRemoteParent(@Nullable SpanContext remoteParent, String name, StartSpanOptions options)
Span (or root if parent is null), with parent
being the Span designated by the SpanContext and the given options.
This must be used to create a Span when the parent is on a different process.
remoteParent - The remote parent of the returned Span.name - The name of the returned Span.options - The options for the start of the Span.Span that will have the name provided.