LocalRootSpan
in package
Tags
Table of Contents
Methods
- current() : SpanInterface
- Retrieve the local root span. This is the root-most active span which has a remote or invalid parent.
- fromContext() : SpanInterface
- Retrieve the local root span from a Context.
Methods
current()
Retrieve the local root span. This is the root-most active span which has a remote or invalid parent.
public
static current() : SpanInterface
If there is no active local root span, then an invalid span is returned.
Tags
Return values
SpanInterfacefromContext()
Retrieve the local root span from a Context.
public
static fromContext(ContextInterface $context) : SpanInterface
Parameters
- $context : ContextInterface