You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My ultimate goal is to parse a Github run info record into OpenTelemetry spans, and export them to an OTel collector or some other service that accepts OTel traces. I'm trying to use GitHub Script for retrieving the github run info and parsing, and the use opentelemetry-js for forming the spans and sending them to an exporter. The parsing and the span creation are working fine, but the propagation of the traces is not. I'm trying to follow https://opentelemetry.io/docs/languages/js/propagation/#manual-context-propagation
I have tried to simplify my code as much as possible to isolate only the propagation part. Here's my code:
I believe that the BaseContext object should have the traceparent info in its _currentContext map somehow, and that the lack of any data here means that something isn't right with the extraction. Are there runtime assumptions behind https://opentelemetry.io/docs/languages/js/propagation/#manual-context-propagation that the GitHub Actions Script runtime environment does not meet? Am I missing something else?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My ultimate goal is to parse a Github run info record into OpenTelemetry spans, and export them to an OTel collector or some other service that accepts OTel traces. I'm trying to use GitHub Script for retrieving the github run info and parsing, and the use opentelemetry-js for forming the spans and sending them to an exporter. The parsing and the span creation are working fine, but the propagation of the traces is not. I'm trying to follow https://opentelemetry.io/docs/languages/js/propagation/#manual-context-propagation
I have tried to simplify my code as much as possible to isolate only the propagation part. Here's my code:
It's in a Github Actions workflow here: https://github.com/msarahan/telemetry-traceparent/blob/main/.github/workflows/run-test.yml
The output from a run shows the following for the console.log calls:
I believe that the BaseContext object should have the traceparent info in its
_currentContext
map somehow, and that the lack of any data here means that something isn't right with the extraction. Are there runtime assumptions behind https://opentelemetry.io/docs/languages/js/propagation/#manual-context-propagation that the GitHub Actions Script runtime environment does not meet? Am I missing something else?Beta Was this translation helpful? Give feedback.
All reactions