For details about the mapping between Ascend AI Processors and Ascend products, see Ascend Product Overview.
Product |
Supported |
|---|---|
x |
|
√ |
|
x |
|
√ |
|
x |
For the
For the
Adds Trace information to the current context.
1 | size_t Attach(const TraceId traceId, const SpanId spanId, const bool isSample = true) |
Parameter |
Input/Output |
Description |
|---|---|---|
traceId |
Input |
Trace ID. |
spanId |
Input |
Span ID. |
isSample |
Input |
Sampling or not; defaults to true. |
Returns the context index, which is used to call the API in Unattach.