OpenTelemetry PHP

LocalRootSpan
in package

Tags
experimental

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
experimental
Return values
SpanInterface

        
On this page

Search results