I’m trying to generate a W3C trace context traceparent header on azure APIM, if none exists yet.
I tried to follow the approach suggested this answer. However this seems to be discarded by the backend because the generated parent id is all zeros which is an invalid value (see the parent id format specification).
What would be a correct way to generate the parent id? Create a 8 byte random number in c#? Is there anything appropriate in the azure APIM context?
Rui Batista is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1