Module: Datadog::CI::TestVisibility::Serializers::Factories::TestLevel
- Defined in:
- lib/datadog/ci/test_visibility/serializers/factories/test_level.rb
Overview
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
Class Method Summary collapse
Class Method Details
.serializer(trace, span, options: {}) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/datadog/ci/test_visibility/serializers/factories/test_level.rb', line 17 def serializer(trace, span, options: {}) case span.type when Datadog::CI::Ext::AppTypes::TYPE_TEST Serializers::TestV1.new(trace, span, options: ) else Serializers::Span.new(trace, span, options: ) end end |