ExtractAndAttach

Supported Products

Note

For details about Ascend product models, see Ascend Product Models.

Product Type Supported (Yes/No)
Atlas A3 training products and Atlas A3 inference products No
Atlas A2 training products and Atlas A2 inference products Yes
Atlas 200I/500 A2 inference products No
Atlas inference products Yes
Atlas training products No

Note

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

Description

Parses HTTP trace information and attaches it to the current context.

Function Prototype

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

Parameters

Table 1 Parameter description

Parameter Input/Output Description
traceParentOfW3C Input W3C traceparent string
traceOfB3 Input B3 trace string

Return Values

Returns a context index, whihc is used as the argument when calling Unattach.