bitfab 0.23.6 → 0.23.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc6488982aa89cb2226e627f80da9bd85a1575bac14728aa81d2d5974c920aae
4
- data.tar.gz: 519b07afa8c9a7220d730b7bc72b5e8a3cddb037b3e2b70bd36b476c4d400d29
3
+ metadata.gz: fb51dda5edc6e1c4cf5cc439c766b52dad303f3838e5aae80b03cd521fa34d80
4
+ data.tar.gz: a1b21474b8d32f22ed6a17e2ef65d865549fb23d7a25de9cbdfd03e64eb385a5
5
5
  SHA512:
6
- metadata.gz: 362409a4955d1eec6ac5b4c0309a87d65ce9722f517f4cc364931f89fb66adf1a5fe0b4ac1d5a847a7e9d7fc9559c4d2449de03b2c2d9900ded22e317db28518
7
- data.tar.gz: 735836a1730cf48e2fb5370f755e667bf3912b96a21ca9b97375b7e4e1bfd43e34531e557c5d49f28482dbbe32c091ec5bb08cc86fc9656b4f44a6edd7880b0f
6
+ metadata.gz: 9dfb2cb3e7eb9f845453f58e807c6150e8136c43fdc5e3aedfb65d89b61027772831775f0a7854559a89be4ddeae7084b6c26195ac165365083309429834057c
7
+ data.tar.gz: '0785322f709aa5dbe67454f7ca743e5def622d9ed6981d4f62b5c222e1e730270bfc727805f7198a4a139d54ea966dc80df194107f1e90b575638f90e7f7a02e'
data/lib/bitfab/client.rb CHANGED
@@ -492,7 +492,7 @@ module Bitfab
492
492
 
493
493
  def send_span(trace_function_key:, trace_id:, span_id:, parent_span_id:,
494
494
  span_name:, span_type:, function_name:, contexts:, prompt:, args:, kwargs:, result:, error:,
495
- started_at:, ended_at:, test_run_id: nil, input_source_span_id: nil)
495
+ started_at:, ended_at:, test_run_id: nil, input_source_span_id: nil, mocked: false)
496
496
  # If drop() was called on this trace, suppress the span PAYLOAD upload for
497
497
  # every span that completes after the flag was set. The trace completion
498
498
  # still rides out with dropped: true, so the server scrubs any sibling
@@ -547,6 +547,10 @@ module Bitfab
547
547
  "rawSpan" => raw_span
548
548
  }
549
549
  payload["testRunId"] = test_run_id if test_run_id
550
+ # Flag spans served from the original trace's recorded output during a
551
+ # replay so the trace view can mark them (matches the Python and
552
+ # TypeScript SDKs).
553
+ payload["mocked"] = true if mocked
550
554
 
551
555
  # A value that could only be captured as a placeholder makes the span
552
556
  # non-replayable; record it on the payload's errors (matching the Python
@@ -644,7 +648,8 @@ module Bitfab
644
648
  started_at:,
645
649
  ended_at:,
646
650
  test_run_id:,
647
- input_source_span_id:
651
+ input_source_span_id:,
652
+ mocked: true
648
653
  )
649
654
  # Mocked spans are always non-root (advance_mock_counter returns nil for
650
655
  # root spans, so check_mock_replay never short-circuits them), so the
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bitfab
4
- VERSION = "0.23.6"
4
+ VERSION = "0.23.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitfab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.6
4
+ version: 0.23.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harvest Team