콘텐츠로 이동

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