bitfab 0.61.2 → 0.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bitfab/replay.rb +4 -16
- data/lib/bitfab/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4a04ce4c6087bca4125aeb03947b00facce1f8b1f8da0ab35973c110ef1f40ae
|
|
4
|
+
data.tar.gz: c66fec4e4390bbdfa35f1a12a010bc070400309b874c2531f48930729754712f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5c0d3bf2b9f187c8e0ec6e9ce99cf28b81cf992377e4621e9636d77cd79a027a15f857e3572ba0bf8ebf5a4912cbd4fd8da8cd652ab1d2ad5f77e43073ba8c6e
|
|
7
|
+
data.tar.gz: 64eef7e076828f8ab95c4b53f0f2c95061b142819d8e705ac59417a6b2df95da6ed6f4e5100627881e8de8582f769a6cf557e99b9a3ad3185eeb2e1e9f247ece
|
data/lib/bitfab/replay.rb
CHANGED
|
@@ -465,8 +465,6 @@ module Bitfab
|
|
|
465
465
|
# run's tokens (span-aggregated server-side), used below to fill each
|
|
466
466
|
# item's :tokens.
|
|
467
467
|
replay_tokens = complete_response&.dig("tokens") || {}
|
|
468
|
-
replay_outlines = complete_response&.dig("traceOutlines") || {}
|
|
469
|
-
original_outlines = complete_response&.dig("originalTraceOutlines") || {}
|
|
470
468
|
|
|
471
469
|
# trace_id_map maps each item's client-side correlation id (:_sdk_trace_id,
|
|
472
470
|
# which tagged that item's spans during the run) to the server's trace row
|
|
@@ -490,11 +488,7 @@ module Bitfab
|
|
|
490
488
|
completed_count += 1
|
|
491
489
|
missing << local_id if mapped.nil?
|
|
492
490
|
end
|
|
493
|
-
if mapped
|
|
494
|
-
item[:tokens] = normalize_tokens(replay_tokens[mapped])
|
|
495
|
-
item[:trace_outline] = replay_outlines[mapped]
|
|
496
|
-
end
|
|
497
|
-
item[:original_trace_outline] = original_outlines[item[:original_trace_id]] if item[:original_trace_id]
|
|
491
|
+
item[:tokens] = normalize_tokens(replay_tokens[mapped]) if mapped
|
|
498
492
|
end
|
|
499
493
|
# ALL completed items missing: systemic (the replayed method is not
|
|
500
494
|
# traced, or uploads are wholesale broken). Raise; the run's traces
|
|
@@ -887,9 +881,7 @@ module Bitfab
|
|
|
887
881
|
tokens: result[:tokens],
|
|
888
882
|
model: result[:model],
|
|
889
883
|
db_snapshot_ref: result[:db_snapshot_ref],
|
|
890
|
-
db_branch_timings: result[:db_branch_timings]
|
|
891
|
-
trace_outline: result[:trace_outline],
|
|
892
|
-
original_trace_outline: result[:original_trace_outline]
|
|
884
|
+
db_branch_timings: result[:db_branch_timings]
|
|
893
885
|
}
|
|
894
886
|
})
|
|
895
887
|
rescue => e
|
|
@@ -1091,9 +1083,7 @@ module Bitfab
|
|
|
1091
1083
|
source_trace_id: original_trace_id,
|
|
1092
1084
|
source_span_id: original_span_id,
|
|
1093
1085
|
db_snapshot_ref:,
|
|
1094
|
-
db_branch_timings
|
|
1095
|
-
trace_outline: nil,
|
|
1096
|
-
original_trace_outline: nil
|
|
1086
|
+
db_branch_timings:
|
|
1097
1087
|
}
|
|
1098
1088
|
ensure
|
|
1099
1089
|
release_db_branch_lease(http_client, lease) if lease
|
|
@@ -1403,9 +1393,7 @@ module Bitfab
|
|
|
1403
1393
|
source_trace_id: source_bitfab_trace_id,
|
|
1404
1394
|
source_span_id: input_source_span_id,
|
|
1405
1395
|
db_snapshot_ref:,
|
|
1406
|
-
db_branch_timings
|
|
1407
|
-
trace_outline: nil,
|
|
1408
|
-
original_trace_outline: nil
|
|
1396
|
+
db_branch_timings:
|
|
1409
1397
|
}
|
|
1410
1398
|
end
|
|
1411
1399
|
end
|
data/lib/bitfab/version.rb
CHANGED