ParentContext type
一個用於建立跨度的父上下文。 接受以下任一:
- ParentSpanRef:明確的traceId/spanId配對(手動方法)
-
ParentContext: 一個 OTel 上下文,通常來自 extractContextFromHeaders 或
propagation.extract()
type ParentContext = ParentSpanRef | Context
一個用於建立跨度的父上下文。 接受以下任一:
propagation.extract()type ParentContext = ParentSpanRef | Context