Span¶
Supported Products¶
[!NOTE]
For details about Ascend product models, see Ascend Product Models.
Ascend 950PR&950DT products : Not supported
Atlas A3 products : Supported
Atlas A2 products : Supported
Atlas 200I/500 A2 inference products : Supported
Atlas inference products : Supported
Atlas training products : Not supported
[!NOTE]
For Atlas A2 products, only the Atlas 800I A2 in this series is supported. For Atlas inference products, only the Atlas 300I Duo inference card and Atlas 800 inference server (model 3000) in this series are supported.
Description¶
Creates a span.
Function Prototype¶
Span(const char* spanName, TraceContext& ctx, bool isSampled = true, const char* moduleName = nullptr, bool autoEnd = true)
Parameter Description¶
Table 1 Parameters
| Parameter | Input/Output | Remarks |
|---|---|---|
| spanName | Input | Span name. |
| ctx | Input | Trace context. |
| isSampled | Input | Specifies whether to perform sampling. The default value is true. |
| moduleName | Input | (Optional) Module name. |
| autoEnd | Input | Specifies whether to automatically end the span. The default value is true. |
Return Values¶
Returns the current trace context.