ParentContext type
Pääkonteksti span-luontia varten. Hyväksyy jommankumman seuraavista:
- ParentSpanRef: eksplisiittinen traceId/spanId-pari (manuaalinen menetelmä)
-
ParentContext: an OTel Context, yleensä kohteesta extractContextFromHeaders tai
propagation.extract()
type ParentContext = ParentSpanRef | Context