Sha256: 1c02c1e7ca846aee1dd2a3d3057717c1536764599a89ce0317219e880898b174
Contents?: true
Size: 1012 Bytes
Versions: 18
Compression:
Stored size: 1012 Bytes
Contents
# frozen_string_literal: true require_relative "base" require_relative "../../ext/test" module Datadog module CI module TestVisibility module Serializers class TestV1 < Base CONTENT_FIELDS = (%w[trace_id span_id] + Base::CONTENT_FIELDS).freeze CONTENT_MAP_SIZE = calculate_content_map_size(CONTENT_FIELDS) REQUIRED_FIELDS = (%w[trace_id span_id] + Base::REQUIRED_FIELDS).freeze def content_fields CONTENT_FIELDS end def content_map_size CONTENT_MAP_SIZE end def event_type Ext::AppTypes::TYPE_TEST end def name "#{@span.get_tag(Ext::Test::TAG_FRAMEWORK)}.test" end def resource "#{@span.get_tag(Ext::Test::TAG_SUITE)}.#{@span.get_tag(Ext::Test::TAG_NAME)}" end private def required_fields REQUIRED_FIELDS end end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems