Span
Applicability
Product |
Supported (Yes/No) |
|---|---|
x |
|
√ |
|
x |
|
√ |
|
x |
For
For
Function Description
Creates a Span.
Prototype
1 | Span(const char* spanName, TraceContext& ctx, bool isSampled = true,const char* moduleName = nullptr, bool autoEnd = true) |
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
spanName |
Input |
Span name. |
ctx |
Input |
Trace context. |
isSampled |
Input |
Sampling or not; defaults to true. |
moduleName |
Input |
(Optional) Module name. |
autoEnd |
Input |
Whether to automatically end the trace; defaults to true. |
Return Value Description
Returns the current Trace context information.