Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不支持http header透传? #55

Open
isyntop opened this issue Aug 8, 2019 · 1 comment
Open

不支持http header透传? #55

isyntop opened this issue Aug 8, 2019 · 1 comment

Comments

@isyntop
Copy link

isyntop commented Aug 8, 2019

/**
 * 注入
 * @param SpanContext $spanContext
 * @param string $format
 * @param $carrier
 */
public function inject(SpanContext $spanContext, $format, &$carrier){
    if($format == Formats\TEXT_MAP){
        $this->propagator->inject($spanContext, $format, $carrier);
    }else{
        throw new \Exception("not support format $format");
    }
}


/**
 * 提取
 * @param string $format
 * @param $carrier
 */
public function extract($format, $carrier){
    if($format == Formats\TEXT_MAP){
        return $this->propagator->extract($format, $carrier);
    }else{
        throw new \Exception("not support format $format");
    }
}

const HTTP_HEADERS = 'http_headers'; 不支持http header透传?

@jukylin
Copy link
Owner

jukylin commented Aug 8, 2019

期待你提个pr

@jukylin jukylin pinned this issue Aug 9, 2019
@jukylin jukylin unpinned this issue Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants