跳转到内容

getCurrentTraceContext

此内容尚不支持你的语言。

function getCurrentTraceContext():
| Readonly<{
span?: | Span<any>
| null;
trace: Trace;
}>
| null;

Gets a public snapshot of the current trace context.

This intentionally does not expose the internal async storage shape.

| Readonly<{ span?: | Span<any> | null; trace: Trace; }> | null