Attach
产品支持情况
产品 |
是否支持 |
|---|---|
x |
|
√ |
|
x |
|
√ |
|
x |
针对
针对
功能说明
附加Trace信息到当前上下文。
函数原型
1 | size_t Attach(const TraceId traceId, const SpanId spanId, const bool isSample = true) |
参数说明
参数名 |
输入/输出 |
说明 |
|---|---|---|
traceId |
输入 |
Trace ID。 |
spanId |
输入 |
跨度ID。 |
isSample |
输入 |
是否采样(默认true) |
返回值说明
返回上下文索引,作为Unattach的调用参数。
父主题: TraceContext类
