Skip to content

Commit

Permalink
Update main.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
plengauer authored Jan 2, 2025
1 parent 7f6014e commit b5d471d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/instrument/workflow/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ printenv | grep -E '^OTEL_|^TRACEPARENT=|^TRACESTATE=' | grep -v HEADERS > "$env
node upload_artifact.js opentelemetry "$env_dir"/.env
rm -r "$env_dir"
otel_span_deactivate "$span_handle"
while [ "$(github_workflow jobs | jq -r '.jobs[] | select(.status != "completed") | .name' | wc -l)" -gt 1 ]; do sleep 3; done
while [ "$(github_workflow jobs | jq -r '.jobs[] | select(.status != "completed") | .name' | wc -l)" -gt 1 ]; do sleep 5; done
if [ "$(github_workflow jobs | jq -r '.jobs[] | select(.status == "completed") | select(.conclusion == "failure") | .name' | wc -l)" -gt 0 ]; then otel_span_error "$span_handle"; fi
otel_span_end "$span_handle"
otel_shutdown
Expand Down

0 comments on commit b5d471d

Please sign in to comment.