public function inject(SpanContext $context, $container)
    {
        $header = $this->key();
        $value = $this->formatter->serialize($context);
        if (!headers_sent()) {
            header("$header: $value");
        }
        return [
            $header => $value
        ];
    }
public function inject(SpanContext $context, $container)
    {
        $header = $this->key();
        $value = $this->formatter->serialize($context);
        if (!headers_sent()) {
            header("$header: $value");
        }
        return [
            $header => $value
        ];
    }
public function inject ( SpanContext $ context , $ container ) { $ header = $ this -> key ( ) ; $ value = $ this -> formatter -> serialize ( $ context ) ; if ( ! headers_sent ( ) ) { header ( "$header: $value" ) ; } return [ $ header => $ value ] ; }
Persists the current SpanContext back into the results of this request

@param SpanContext $context
@param array $container
@return array
Persists the current SpanContext back into the results of this request