ExtractAndAttach
产品支持情况
产品 |
是否支持 |
|---|---|
x |
|
√ |
|
x |
|
√ |
|
x |
针对
针对
功能说明
解析HTTP Trace信息并附加到当前上下文。
函数原型
1 | size_t ExtractAndAttach(const std::string& traceParentOfW3C, const std::string& traceOfB3) |
参数说明
参数名 |
输入/输出 |
说明 |
|---|---|---|
traceParentOfW3C |
输入 |
W3C标准的trace-parent字符串。 |
traceOfB3 |
输入 |
B3标准的trace字符串。 |
返回值说明
返回上下文索引,作为Unattach的调用参数。
父主题: TraceContext类
