public function spanContext()
    {
        $context = Context::current();
        return new SpanContext(
            $context->value('traceId'),
            $context->value('spanId'),
            $context->value('enabled'),
            $context->value('fromHeader')
        );
    }
public function spanContext()
    {
        $context = Context::current();
        return new SpanContext(
            $context->value('traceId'),
            $context->value('spanId'),
            $context->value('enabled'),
            $context->value('fromHeader')
        );
    }
public function spanContext ( ) { $ context = Context :: current ( ) ; return new SpanContext ( $ context -> value ( 'traceId' ) , $ context -> value ( 'spanId' ) , $ context -> value ( 'enabled' ) , $ context -> value ( 'fromHeader' ) ) ; }
Returns the current SpanContext

@return SpanContext
Returns the current SpanContext