Skip to content

Commit 22694c8

Browse files
committed
fix/subspan count in wrong place
Signed-off-by: Adam Gardner <adam@agardner.net>
1 parent da46d0b commit 22694c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

samples/script.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ do
2121
sleep 1
2222
time_end=$SECONDS
2323
duration=$(( $time_end - $time_start ))
24-
counter=$(( $counter + 1 ))
2524
echo "loop time_start: ${time_start}. time_end: ${time_end}. duration: ${duration}"
2625

2726
python3 tracepusher.py \
@@ -34,6 +33,9 @@ do
3433
--span-id=${sub_span_id} \
3534
--time-shift=True
3635
echo "pushing subspan: ${sub_span_id} with span name: subspan${counter}. trace id: ${trace_id} and parent span id: ${span_id} and time shifted"
36+
37+
counter=$(( $counter + 1 ))
38+
3739
done
3840

3941
time_end=$SECONDS

0 commit comments

Comments
 (0)