StartSpanAsActive
Applicability
Product |
Supported |
|---|---|
x |
|
√ |
|
x |
|
√ |
|
x |
For
For
Function
Creates and activates a Span.
Prototype
1 | static Span StartSpanAsActive(const char* spanName, const char* moduleName = nullptr,bool autoEnd = true) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
spanName |
Input |
Span name. |
moduleName |
Input |
(Optional) Module name. |
autoEnd |
Input |
Whether to automatically end the trace; defaults to true. |
Returns
Returns the object of the Span class.
Parent topic: Tracer Class