Skip to content

Commit

Permalink
Fix demo generation
Browse files Browse the repository at this point in the history
  • Loading branch information
plengauer authored Oct 23, 2024
1 parent 801ac9f commit 4cce091
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
cd demos/${{ matrix.demo_directory }}
spans() {
jq '. | select(.resourceSpans != null) | .resourceSpans[].scopeSpans[].spans[]' | jq -s '. | sort_by(.startTimeUnixNano) | .[]' < otlp.json
cat otlp.json | jq '. | select(.resourceSpans != null) | .resourceSpans[].scopeSpans[].spans[]' | jq -s '. | sort_by(.startTimeUnixNano) | .[]'
}
convert_span_id_to_name() {
Expand Down Expand Up @@ -190,8 +190,8 @@ jobs:
pretty_print_trace() {
cat otlp.json | jq -r '. | select(.resourceSpans != null) | .resourceSpans[].scopeSpans[].spans[]' | jq -s '. | sort_by(.startTimeUnixNano) | .[].spanId' | while read -r span_id; do
span="$(jq '. | select(.resourceSpans != null) | .resourceSpans[].scopeSpans[].spans[] | select(.spanId == "'$span_id'")' < otlp.json)"
resource_attributes="$(jq '. | select(.resourceSpans != null) | .resourceSpans[] | select(.scopeSpans[].spans[].spanId == "'$span_id'")' < otlp.json | jq .resource.attributes)"
span="$(spans | jq 'select(.spanId == "'$span_id'")')"
resource_attributes="$(cat otlp.json | jq '. | select(.resourceSpans != null) | .resourceSpans[] | select(.scopeSpans[].spans[].spanId == "'$span_id'") | .resource.attributes')"
jq -n \
--argjson trace_id "$(printf '%s' "$span" | jq .traceId)" \
--argjson span_id "$(printf '%s' "$span" | jq .spanId)" \
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.35.0
4.35.1

0 comments on commit 4cce091

Please sign in to comment.