ParentContext type

บริบทหลักสําหรับการสร้างการขยาย ยอมรับอย่างใดอย่างหนึ่ง:

  • ParentSpanRef: คู่ traceId/spanId ที่ชัดเจน (วิธีการแบบแมนวล)
  • ParentContext: บริบท OTel โดยทั่วไปมาจาก extractContextFromHeaders หรือ propagation.extract()
type ParentContext = ParentSpanRef | Context