ParentContext type
用于跨度创建的父上下文。 接受以下任一:
- ParentSpanRef:显式 traceId/spanId 对(手动方法)
-
ParentContext:OTel 上下文,通常来自 extractContextFromHeaders 或
propagation.extract()
type ParentContext = ParentSpanRef | Context
用于跨度创建的父上下文。 接受以下任一:
propagation.extract()type ParentContext = ParentSpanRef | Context