ExtractAndAttach

Applicable Products

For details about the mapping between Ascend AI Processors and Ascend products, see Ascend Product Overview.

Product

Supported

Atlas A3 training products/Atlas A3 inference products

x

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

x

Atlas inference products

√

Atlas training products

x

For the Atlas A2 training products/Atlas A2 inference products, only Atlas 800I A2 inference products are supported.

For the Atlas inference products, only the Atlas 300I Duo inference card and Atlas 800 inference server (model 3000) are supported.

Function

Parses HTTP Trace information and adds it to the current context.

Prototype

1
size_t ExtractAndAttach(const std::string& traceParentOfW3C, const std::string& traceOfB3)

Parameters

Table 1 Parameters

Parameter

Input/Output

Description

traceParentOfW3C

Input

W3C-compliant traceparent string.

traceOfB3

Input

B3-compliant trace string.

Returns

Returns the context index, which is used to call the API in Unattach.