Sha256: 994e20ea58cde88fe2cdb1a8f5fd0f83cfe0f7e69565ac645ce6331c73629b27

Contents?: true

Size: 879 Bytes

Versions: 17

Compression:

Stored size: 879 Bytes

Contents

# frozen_string_literal: true

require_relative "../test_v1"
require_relative "../span"

module Datadog
  module CI
    module TestVisibility
      module Serializers
        module Factories
          # This factory takes care of creating msgpack serializers when test-level visibility is enabled
          # NOTE: citestcycle is a protocol Datadog uses to submit test execution tracing information to CI visibility
          # backend
          module TestLevel
            module_function

            def serializer(trace, span, options: {})
              case span.type
              when Datadog::CI::Ext::AppTypes::TYPE_TEST
                Serializers::TestV1.new(trace, span, options: options)
              else
                Serializers::Span.new(trace, span, options: options)
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
datadog-ci-1.11.0 lib/datadog/ci/test_visibility/serializers/factories/test_level.rb
datadog-ci-1.10.0 lib/datadog/ci/test_visibility/serializers/factories/test_level.rb
datadog-ci-1.9.0 lib/datadog/ci/test_visibility/serializers/factories/test_level.rb
datadog-ci-1.8.1 lib/datadog/ci/test_visibility/serializers/factories/test_level.rb
datadog-ci-1.8.0 lib/datadog/ci/test_visibility/serializers/factories/test_level.rb
datadog-ci-1.7.0 lib/datadog/ci/test_visibility/serializers/factories/test_level.rb
datadog-ci-1.6.0 lib/datadog/ci/test_visibility/serializers/factories/test_level.rb
datadog-ci-1.5.0 lib/datadog/ci/test_visibility/serializers/factories/test_level.rb
datadog-ci-1.4.1 lib/datadog/ci/test_visibility/serializers/factories/test_level.rb
datadog-ci-1.4.0 lib/datadog/ci/test_visibility/serializers/factories/test_level.rb
datadog-ci-1.3.0 lib/datadog/ci/test_visibility/serializers/factories/test_level.rb
datadog-ci-1.2.0 lib/datadog/ci/test_visibility/serializers/factories/test_level.rb
datadog-ci-1.1.0 lib/datadog/ci/test_visibility/serializers/factories/test_level.rb
datadog-ci-1.0.1 lib/datadog/ci/test_visibility/serializers/factories/test_level.rb
datadog-ci-1.0.0 lib/datadog/ci/test_visibility/serializers/factories/test_level.rb
datadog-ci-1.0.0.beta6 lib/datadog/ci/test_visibility/serializers/factories/test_level.rb
datadog-ci-1.0.0.beta3 lib/datadog/ci/test_visibility/serializers/factories/test_level.rb