From 0614e3ac341b41844fa55329d1c98c85bee0165c Mon Sep 17 00:00:00 2001 From: Tony Redondo Date: Mon, 16 Dec 2024 14:41:48 +0100 Subject: [PATCH 1/2] [CI Visibility] Add missing telemetry metrics --- .../Ci/IntelligentTestRunnerClient.cs | 23 ++- .../Ci/Telemetry/TelemetryHelper.cs | 20 ++- ...sTelemetryCollector_CountCIVisibility.g.cs | 142 +++++++++++------- ...sTelemetryCollector_CountCIVisibility.g.cs | 142 +++++++++++------- ...sTelemetryCollector_CountCIVisibility.g.cs | 142 +++++++++++------- ...sTelemetryCollector_CountCIVisibility.g.cs | 142 +++++++++++------- .../Telemetry/Metrics/MetricTags.cs | 40 +++-- 7 files changed, 399 insertions(+), 252 deletions(-) diff --git a/tracer/src/Datadog.Trace/Ci/IntelligentTestRunnerClient.cs b/tracer/src/Datadog.Trace/Ci/IntelligentTestRunnerClient.cs index 712f9a336b97..35fa3dc318d7 100644 --- a/tracer/src/Datadog.Trace/Ci/IntelligentTestRunnerClient.cs +++ b/tracer/src/Datadog.Trace/Ci/IntelligentTestRunnerClient.cs @@ -413,14 +413,21 @@ async Task InternalGetSettingsAsync(byte[] state, bool finalTr var settingsResponse = deserializedResult.Data?.Attributes ?? default; TelemetryFactory.Metrics.RecordCountCIVisibilityGitRequestsSettingsResponse(settingsResponse switch { - { CodeCoverage: true, TestsSkipping: true, EarlyFlakeDetection.Enabled: false } => MetricTags.CIVisibilityITRSettingsResponse.CoverageEnabled_ItrSkipEnabled, - { CodeCoverage: true, TestsSkipping: false, EarlyFlakeDetection.Enabled: false } => MetricTags.CIVisibilityITRSettingsResponse.CoverageEnabled_ItrSkipDisabled, - { CodeCoverage: false, TestsSkipping: true, EarlyFlakeDetection.Enabled: false } => MetricTags.CIVisibilityITRSettingsResponse.CoverageDisabled_ItrSkipEnabled, - { CodeCoverage: false, TestsSkipping: false, EarlyFlakeDetection.Enabled: true } => MetricTags.CIVisibilityITRSettingsResponse.CoverageDisabled_ItrSkipDisabled_EFDEnabled, - { CodeCoverage: true, TestsSkipping: true, EarlyFlakeDetection.Enabled: true } => MetricTags.CIVisibilityITRSettingsResponse.CoverageEnabled_ItrSkipEnabled_EFDEnabled, - { CodeCoverage: true, TestsSkipping: false, EarlyFlakeDetection.Enabled: true } => MetricTags.CIVisibilityITRSettingsResponse.CoverageEnabled_ItrSkipDisabled_EFDEnabled, - { CodeCoverage: false, TestsSkipping: true, EarlyFlakeDetection.Enabled: true } => MetricTags.CIVisibilityITRSettingsResponse.CoverageDisabled_ItrSkipEnabled_EFDEnabled, - _ => MetricTags.CIVisibilityITRSettingsResponse.CoverageDisabled_ItrSkipDisabled, + { CodeCoverage: true, TestsSkipping: true, EarlyFlakeDetection.Enabled: false, FlakyTestRetries: false } => MetricTags.CIVisibilityITRSettingsResponse.CoverageEnabled_ItrSkipEnabled_AtrDisabled, + { CodeCoverage: true, TestsSkipping: false, EarlyFlakeDetection.Enabled: false, FlakyTestRetries: false } => MetricTags.CIVisibilityITRSettingsResponse.CoverageEnabled_ItrSkipDisabled_AtrDisabled, + { CodeCoverage: false, TestsSkipping: true, EarlyFlakeDetection.Enabled: false, FlakyTestRetries: false } => MetricTags.CIVisibilityITRSettingsResponse.CoverageDisabled_ItrSkipEnabled_AtrDisabled, + { CodeCoverage: false, TestsSkipping: false, EarlyFlakeDetection.Enabled: true, FlakyTestRetries: false } => MetricTags.CIVisibilityITRSettingsResponse.CoverageDisabled_ItrSkipDisabled_EFDEnabled_AtrDisabled, + { CodeCoverage: true, TestsSkipping: true, EarlyFlakeDetection.Enabled: true, FlakyTestRetries: false } => MetricTags.CIVisibilityITRSettingsResponse.CoverageEnabled_ItrSkipEnabled_EFDEnabled_AtrDisabled, + { CodeCoverage: true, TestsSkipping: false, EarlyFlakeDetection.Enabled: true, FlakyTestRetries: false } => MetricTags.CIVisibilityITRSettingsResponse.CoverageEnabled_ItrSkipDisabled_EFDEnabled_AtrDisabled, + { CodeCoverage: false, TestsSkipping: true, EarlyFlakeDetection.Enabled: true, FlakyTestRetries: false } => MetricTags.CIVisibilityITRSettingsResponse.CoverageDisabled_ItrSkipEnabled_EFDEnabled_AtrDisabled, + { CodeCoverage: true, TestsSkipping: true, EarlyFlakeDetection.Enabled: false, FlakyTestRetries: true } => MetricTags.CIVisibilityITRSettingsResponse.CoverageEnabled_ItrSkipEnabled_AtrEnabled, + { CodeCoverage: true, TestsSkipping: false, EarlyFlakeDetection.Enabled: false, FlakyTestRetries: true } => MetricTags.CIVisibilityITRSettingsResponse.CoverageEnabled_ItrSkipDisabled_AtrEnabled, + { CodeCoverage: false, TestsSkipping: true, EarlyFlakeDetection.Enabled: false, FlakyTestRetries: true } => MetricTags.CIVisibilityITRSettingsResponse.CoverageDisabled_ItrSkipEnabled_AtrEnabled, + { CodeCoverage: false, TestsSkipping: false, EarlyFlakeDetection.Enabled: true, FlakyTestRetries: true } => MetricTags.CIVisibilityITRSettingsResponse.CoverageDisabled_ItrSkipDisabled_EFDEnabled_AtrEnabled, + { CodeCoverage: true, TestsSkipping: true, EarlyFlakeDetection.Enabled: true, FlakyTestRetries: true } => MetricTags.CIVisibilityITRSettingsResponse.CoverageEnabled_ItrSkipEnabled_EFDEnabled_AtrEnabled, + { CodeCoverage: true, TestsSkipping: false, EarlyFlakeDetection.Enabled: true, FlakyTestRetries: true } => MetricTags.CIVisibilityITRSettingsResponse.CoverageEnabled_ItrSkipDisabled_EFDEnabled_AtrEnabled, + { CodeCoverage: false, TestsSkipping: true, EarlyFlakeDetection.Enabled: true, FlakyTestRetries: true } => MetricTags.CIVisibilityITRSettingsResponse.CoverageDisabled_ItrSkipEnabled_EFDEnabled_AtrEnabled, + _ => MetricTags.CIVisibilityITRSettingsResponse.CoverageDisabled_ItrSkipDisabled_AtrDisabled, }); return settingsResponse; } diff --git a/tracer/src/Datadog.Trace/Ci/Telemetry/TelemetryHelper.cs b/tracer/src/Datadog.Trace/Ci/Telemetry/TelemetryHelper.cs index 6934ca4d2680..0d2e22947fae 100644 --- a/tracer/src/Datadog.Trace/Ci/Telemetry/TelemetryHelper.cs +++ b/tracer/src/Datadog.Trace/Ci/Telemetry/TelemetryHelper.cs @@ -174,12 +174,24 @@ public static MetricTags.CIVisibilityExitCodes GetTelemetryExitCodeFromExitCode( return MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmarkAndEarlyFlakeDetectionAndRum.Module; case MetricTags.CIVisibilityTestingEventType.Session: { + var settings = CIVisibility.Settings; + if (settings.Logs) + { + return CIEnvironmentValues.Instance switch + { + { CodeOwners: not null, IsCI: true } => MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmarkAndEarlyFlakeDetectionAndRum.Session_HasCodeOwner_IsSupportedCi_WithAgentlessLog, + { CodeOwners: not null, IsCI: false } => MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmarkAndEarlyFlakeDetectionAndRum.Session_HasCodeOwner_UnsupportedCi_WithAgentlessLog, + { CodeOwners: null, IsCI: true } => MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmarkAndEarlyFlakeDetectionAndRum.Session_NoCodeOwner_IsSupportedCi_WithAgentlessLog, + { CodeOwners: null, IsCI: false } => MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmarkAndEarlyFlakeDetectionAndRum.Session_NoCodeOwner_UnsupportedCi_WithAgentlessLog, + }; + } + return CIEnvironmentValues.Instance switch { - { CodeOwners: not null, IsCI: true } => MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmarkAndEarlyFlakeDetectionAndRum.Session_HasCodeOwner_IsSupportedCi, - { CodeOwners: not null, IsCI: false } => MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmarkAndEarlyFlakeDetectionAndRum.Session_HasCodeOwner_UnsupportedCi, - { CodeOwners: null, IsCI: true } => MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmarkAndEarlyFlakeDetectionAndRum.Session_NoCodeOwner_IsSupportedCi, - { CodeOwners: null, IsCI: false } => MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmarkAndEarlyFlakeDetectionAndRum.Session_NoCodeOwner_UnsupportedCi, + { CodeOwners: not null, IsCI: true } => MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmarkAndEarlyFlakeDetectionAndRum.Session_HasCodeOwner_IsSupportedCi_WithoutAgentlessLog, + { CodeOwners: not null, IsCI: false } => MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmarkAndEarlyFlakeDetectionAndRum.Session_HasCodeOwner_UnsupportedCi_WithoutAgentlessLog, + { CodeOwners: null, IsCI: true } => MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmarkAndEarlyFlakeDetectionAndRum.Session_NoCodeOwner_IsSupportedCi_WithoutAgentlessLog, + { CodeOwners: null, IsCI: false } => MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmarkAndEarlyFlakeDetectionAndRum.Session_NoCodeOwner_UnsupportedCi_WithoutAgentlessLog, }; } } diff --git a/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountCIVisibility.g.cs b/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountCIVisibility.g.cs index 2766115d192b..eb26f45d2c8d 100644 --- a/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountCIVisibility.g.cs +++ b/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountCIVisibility.g.cs @@ -11,7 +11,7 @@ namespace Datadog.Trace.Telemetry; internal partial class CiVisibilityMetricsTelemetryCollector { - private const int CountCIVisibilityLength = 343; + private const int CountCIVisibilityLength = 371; /// /// Creates the buffer for the values. @@ -69,6 +69,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:xunit", "event_type:session", "is_unsupported_ci" }), new(new[] { "test_framework:xunit", "event_type:session", "has_codeowner", "is_unsupported_ci" }), new(new[] { "test_framework:xunit", "event_type:session", "has_codeowner" }), + new(new[] { "test_framework:xunit", "event_type:session", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:xunit", "event_type:session", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:xunit", "event_type:session", "has_codeowner", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:xunit", "event_type:session", "has_codeowner", "agentless_log_submission_enabled" }), new(new[] { "test_framework:xunit", "event_type:test", "is_new:true" }), new(new[] { "test_framework:xunit", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow" }), new(new[] { "test_framework:xunit", "event_type:test", "browser_driver:selenium" }), @@ -85,6 +89,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:nunit", "event_type:session", "is_unsupported_ci" }), new(new[] { "test_framework:nunit", "event_type:session", "has_codeowner", "is_unsupported_ci" }), new(new[] { "test_framework:nunit", "event_type:session", "has_codeowner" }), + new(new[] { "test_framework:nunit", "event_type:session", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:nunit", "event_type:session", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:nunit", "event_type:session", "has_codeowner", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:nunit", "event_type:session", "has_codeowner", "agentless_log_submission_enabled" }), new(new[] { "test_framework:nunit", "event_type:test", "is_new:true" }), new(new[] { "test_framework:nunit", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow" }), new(new[] { "test_framework:nunit", "event_type:test", "browser_driver:selenium" }), @@ -101,6 +109,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:mstest", "event_type:session", "is_unsupported_ci" }), new(new[] { "test_framework:mstest", "event_type:session", "has_codeowner", "is_unsupported_ci" }), new(new[] { "test_framework:mstest", "event_type:session", "has_codeowner" }), + new(new[] { "test_framework:mstest", "event_type:session", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:mstest", "event_type:session", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:mstest", "event_type:session", "has_codeowner", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:mstest", "event_type:session", "has_codeowner", "agentless_log_submission_enabled" }), new(new[] { "test_framework:mstest", "event_type:test", "is_new:true" }), new(new[] { "test_framework:mstest", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow" }), new(new[] { "test_framework:mstest", "event_type:test", "browser_driver:selenium" }), @@ -117,6 +129,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "is_unsupported_ci" }), new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "has_codeowner", "is_unsupported_ci" }), new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "has_codeowner" }), + new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "has_codeowner", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "has_codeowner", "agentless_log_submission_enabled" }), new(new[] { "test_framework:benchmarkdotnet", "event_type:test", "is_new:true" }), new(new[] { "test_framework:benchmarkdotnet", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow" }), new(new[] { "test_framework:benchmarkdotnet", "event_type:test", "browser_driver:selenium" }), @@ -133,6 +149,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:unknown", "event_type:session", "is_unsupported_ci" }), new(new[] { "test_framework:unknown", "event_type:session", "has_codeowner", "is_unsupported_ci" }), new(new[] { "test_framework:unknown", "event_type:session", "has_codeowner" }), + new(new[] { "test_framework:unknown", "event_type:session", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:unknown", "event_type:session", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:unknown", "event_type:session", "has_codeowner", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:unknown", "event_type:session", "has_codeowner", "agentless_log_submission_enabled" }), new(new[] { "test_framework:unknown", "event_type:test", "is_new:true" }), new(new[] { "test_framework:unknown", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow" }), new(new[] { "test_framework:unknown", "event_type:test", "browser_driver:selenium" }), @@ -141,7 +161,7 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:unknown", "event_type:test", "browser_driver:selenium", "is_rum:true" }), new(new[] { "test_framework:unknown", "event_type:test", "is_new:true", "browser_driver:selenium", "is_rum:true" }), new(new[] { "test_framework:unknown", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow", "browser_driver:selenium", "is_rum:true" }), - // code_coverage_started, index = 120 + // code_coverage_started, index = 140 new(new[] { "test_framework:xunit", "library:custom" }), new(new[] { "test_framework:xunit", "library:unknown" }), new(new[] { "test_framework:nunit", "library:custom" }), @@ -152,7 +172,7 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:benchmarkdotnet", "library:unknown" }), new(new[] { "test_framework:unknown", "library:custom" }), new(new[] { "test_framework:unknown", "library:unknown" }), - // code_coverage_finished, index = 130 + // code_coverage_finished, index = 150 new(new[] { "test_framework:xunit", "library:custom" }), new(new[] { "test_framework:xunit", "library:unknown" }), new(new[] { "test_framework:nunit", "library:custom" }), @@ -163,19 +183,19 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:benchmarkdotnet", "library:unknown" }), new(new[] { "test_framework:unknown", "library:custom" }), new(new[] { "test_framework:unknown", "library:unknown" }), - // manual_api_events, index = 140 + // manual_api_events, index = 160 new(new[] { "event_type:test" }), new(new[] { "event_type:suite" }), new(new[] { "event_type:module" }), new(new[] { "event_type:session" }), - // events_enqueued_for_serialization, index = 144 + // events_enqueued_for_serialization, index = 164 new(null), - // endpoint_payload.requests, index = 145 + // endpoint_payload.requests, index = 165 new(new[] { "endpoint:test_cycle" }), new(new[] { "endpoint:test_cycle", "rq_compressed:true" }), new(new[] { "endpoint:code_coverage" }), new(new[] { "endpoint:code_coverage", "rq_compressed:true" }), - // endpoint_payload.requests_errors, index = 149 + // endpoint_payload.requests_errors, index = 169 new(new[] { "endpoint:test_cycle", "error_type:timeout" }), new(new[] { "endpoint:test_cycle", "error_type:network" }), new(new[] { "endpoint:test_cycle", "error_type:status_code" }), @@ -198,10 +218,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "endpoint:code_coverage", "error_type:status_code_4xx_response", "status_code:404" }), new(new[] { "endpoint:code_coverage", "error_type:status_code_4xx_response", "status_code:408" }), new(new[] { "endpoint:code_coverage", "error_type:status_code_4xx_response", "status_code:429" }), - // endpoint_payload.dropped, index = 171 + // endpoint_payload.dropped, index = 191 new(new[] { "endpoint:test_cycle" }), new(new[] { "endpoint:code_coverage" }), - // git.command, index = 173 + // git.command, index = 193 new(new[] { "command:get_repository" }), new(new[] { "command:get_branch" }), new(new[] { "command:get_remote" }), @@ -211,7 +231,7 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "command:get_local_commits" }), new(new[] { "command:get_objects" }), new(new[] { "command:pack_objects" }), - // git.command_errors, index = 182 + // git.command_errors, index = 202 new(new[] { "command:get_repository", "exit_code:missing" }), new(new[] { "command:get_repository", "exit_code:unknown" }), new(new[] { "command:get_repository", "exit_code:-1" }), @@ -284,10 +304,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "command:pack_objects", "exit_code:127" }), new(new[] { "command:pack_objects", "exit_code:128" }), new(new[] { "command:pack_objects", "exit_code:129" }), - // git_requests.search_commits, index = 254 + // git_requests.search_commits, index = 274 new(null), new(new[] { "rq_compressed:true" }), - // git_requests.search_commits_errors, index = 256 + // git_requests.search_commits_errors, index = 276 new(new[] { "error_type:timeout" }), new(new[] { "error_type:network" }), new(new[] { "error_type:status_code" }), @@ -299,10 +319,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "error_type:status_code_4xx_response", "status_code:404" }), new(new[] { "error_type:status_code_4xx_response", "status_code:408" }), new(new[] { "error_type:status_code_4xx_response", "status_code:429" }), - // git_requests.objects_pack, index = 267 + // git_requests.objects_pack, index = 287 new(null), new(new[] { "rq_compressed:true" }), - // git_requests.objects_pack_errors, index = 269 + // git_requests.objects_pack_errors, index = 289 new(new[] { "error_type:timeout" }), new(new[] { "error_type:network" }), new(new[] { "error_type:status_code" }), @@ -314,10 +334,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "error_type:status_code_4xx_response", "status_code:404" }), new(new[] { "error_type:status_code_4xx_response", "status_code:408" }), new(new[] { "error_type:status_code_4xx_response", "status_code:429" }), - // git_requests.settings, index = 280 + // git_requests.settings, index = 300 new(null), new(new[] { "rq_compressed:true" }), - // git_requests.settings_errors, index = 282 + // git_requests.settings_errors, index = 302 new(new[] { "error_type:timeout" }), new(new[] { "error_type:network" }), new(new[] { "error_type:status_code" }), @@ -329,7 +349,7 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "error_type:status_code_4xx_response", "status_code:404" }), new(new[] { "error_type:status_code_4xx_response", "status_code:408" }), new(new[] { "error_type:status_code_4xx_response", "status_code:429" }), - // git_requests.settings_response, index = 293 + // git_requests.settings_response, index = 313 new(null), new(new[] { "coverage_enabled" }), new(new[] { "itrskip_enabled" }), @@ -338,10 +358,18 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "coverage_enabled", "early_flake_detection_enabled:true" }), new(new[] { "itrskip_enabled", "early_flake_detection_enabled:true" }), new(new[] { "coverage_enabled", "itrskip_enabled", "early_flake_detection_enabled:true" }), - // itr_skippable_tests.request, index = 301 + new(new[] { "flaky_test_retries_enabled:true" }), + new(new[] { "coverage_enabled", "flaky_test_retries_enabled:true" }), + new(new[] { "itrskip_enabled", "flaky_test_retries_enabled:true" }), + new(new[] { "coverage_enabled", "itrskip_enabled", "flaky_test_retries_enabled:true" }), + new(new[] { "early_flake_detection_enabled:true", "flaky_test_retries_enabled:true" }), + new(new[] { "coverage_enabled", "early_flake_detection_enabled:true", "flaky_test_retries_enabled:true" }), + new(new[] { "itrskip_enabled", "early_flake_detection_enabled:true", "flaky_test_retries_enabled:true" }), + new(new[] { "coverage_enabled", "itrskip_enabled", "early_flake_detection_enabled:true", "flaky_test_retries_enabled:true" }), + // itr_skippable_tests.request, index = 329 new(null), new(new[] { "rq_compressed:true" }), - // itr_skippable_tests.request_errors, index = 303 + // itr_skippable_tests.request_errors, index = 331 new(new[] { "error_type:timeout" }), new(new[] { "error_type:network" }), new(new[] { "error_type:status_code" }), @@ -353,33 +381,33 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "error_type:status_code_4xx_response", "status_code:404" }), new(new[] { "error_type:status_code_4xx_response", "status_code:408" }), new(new[] { "error_type:status_code_4xx_response", "status_code:429" }), - // itr_skippable_tests.response_tests, index = 314 + // itr_skippable_tests.response_tests, index = 342 new(null), - // itr_skippable_tests.response_suites, index = 315 + // itr_skippable_tests.response_suites, index = 343 new(null), - // itr_skipped, index = 316 + // itr_skipped, index = 344 new(new[] { "event_type:test" }), new(new[] { "event_type:suite" }), new(new[] { "event_type:module" }), new(new[] { "event_type:session" }), - // itr_unskippable, index = 320 + // itr_unskippable, index = 348 new(new[] { "event_type:test" }), new(new[] { "event_type:suite" }), new(new[] { "event_type:module" }), new(new[] { "event_type:session" }), - // itr_forced_run, index = 324 + // itr_forced_run, index = 352 new(new[] { "event_type:test" }), new(new[] { "event_type:suite" }), new(new[] { "event_type:module" }), new(new[] { "event_type:session" }), - // code_coverage.is_empty, index = 328 + // code_coverage.is_empty, index = 356 new(null), - // code_coverage.errors, index = 329 + // code_coverage.errors, index = 357 new(null), - // early_flake_detection.request, index = 330 + // early_flake_detection.request, index = 358 new(null), new(new[] { "rq_compressed:true" }), - // early_flake_detection.request_errors, index = 332 + // early_flake_detection.request_errors, index = 360 new(new[] { "error_type:timeout" }), new(new[] { "error_type:network" }), new(new[] { "error_type:status_code" }), @@ -399,7 +427,7 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() /// It is equal to the cardinality of the tag combinations (or 1 if there are no tags) /// private static int[] CountCIVisibilityEntryCounts { get; } - = new int[]{ 40, 80, 10, 10, 4, 1, 4, 22, 2, 9, 72, 2, 11, 2, 11, 2, 11, 8, 2, 11, 1, 1, 4, 4, 4, 1, 1, 2, 11, }; + = new int[]{ 40, 100, 10, 10, 4, 1, 4, 22, 2, 9, 72, 2, 11, 2, 11, 2, 11, 16, 2, 11, 1, 1, 4, 4, 4, 1, 1, 2, 11, }; public void RecordCountCIVisibilityEventCreated(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestFramework tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmark tag2, int increment = 1) { @@ -409,164 +437,164 @@ public void RecordCountCIVisibilityEventCreated(Datadog.Trace.Telemetry.Metrics. public void RecordCountCIVisibilityEventFinished(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestFramework tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmarkAndEarlyFlakeDetectionAndRum tag2, int increment = 1) { - var index = 40 + ((int)tag1 * 16) + (int)tag2; + var index = 40 + ((int)tag1 * 20) + (int)tag2; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityCodeCoverageStarted(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestFramework tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityCoverageLibrary tag2, int increment = 1) { - var index = 120 + ((int)tag1 * 2) + (int)tag2; + var index = 140 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityCodeCoverageFinished(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestFramework tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityCoverageLibrary tag2, int increment = 1) { - var index = 130 + ((int)tag1 * 2) + (int)tag2; + var index = 150 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityManualApiEvent(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventType tag, int increment = 1) { - var index = 140 + (int)tag; + var index = 160 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityEventsEnqueueForSerialization(int increment = 1) { - Interlocked.Add(ref _buffer.CountCIVisibility[144], increment); + Interlocked.Add(ref _buffer.CountCIVisibility[164], increment); } public void RecordCountCIVisibilityEndpointPayloadRequests(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityEndpointAndCompression tag, int increment = 1) { - var index = 145 + (int)tag; + var index = 165 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityEndpointPayloadRequestsErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityEndpoints tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag2, int increment = 1) { - var index = 149 + ((int)tag1 * 11) + (int)tag2; + var index = 169 + ((int)tag1 * 11) + (int)tag2; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityEndpointPayloadDropped(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityEndpoints tag, int increment = 1) { - var index = 171 + (int)tag; + var index = 191 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitCommand(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityCommands tag, int increment = 1) { - var index = 173 + (int)tag; + var index = 193 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitCommandErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityCommands tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityExitCodes tag2, int increment = 1) { - var index = 182 + ((int)tag1 * 8) + (int)tag2; + var index = 202 + ((int)tag1 * 8) + (int)tag2; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsSearchCommits(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityRequestCompressed tag, int increment = 1) { - var index = 254 + (int)tag; + var index = 274 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsSearchCommitsErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag, int increment = 1) { - var index = 256 + (int)tag; + var index = 276 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsObjectsPack(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityRequestCompressed tag, int increment = 1) { - var index = 267 + (int)tag; + var index = 287 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsObjectsPackErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag, int increment = 1) { - var index = 269 + (int)tag; + var index = 289 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsSettings(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityRequestCompressed tag, int increment = 1) { - var index = 280 + (int)tag; + var index = 300 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsSettingsErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag, int increment = 1) { - var index = 282 + (int)tag; + var index = 302 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsSettingsResponse(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityITRSettingsResponse tag, int increment = 1) { - var index = 293 + (int)tag; + var index = 313 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityITRSkippableTestsRequest(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityRequestCompressed tag, int increment = 1) { - var index = 301 + (int)tag; + var index = 329 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityITRSkippableTestsRequestErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag, int increment = 1) { - var index = 303 + (int)tag; + var index = 331 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityITRSkippableTestsResponseTests(int increment = 1) { - Interlocked.Add(ref _buffer.CountCIVisibility[314], increment); + Interlocked.Add(ref _buffer.CountCIVisibility[342], increment); } public void RecordCountCIVisibilityITRSkippableTestsResponseSuites(int increment = 1) { - Interlocked.Add(ref _buffer.CountCIVisibility[315], increment); + Interlocked.Add(ref _buffer.CountCIVisibility[343], increment); } public void RecordCountCIVisibilityITRSkipped(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventType tag, int increment = 1) { - var index = 316 + (int)tag; + var index = 344 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityITRUnskippable(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventType tag, int increment = 1) { - var index = 320 + (int)tag; + var index = 348 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityITRForcedRun(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventType tag, int increment = 1) { - var index = 324 + (int)tag; + var index = 352 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityCodeCoverageIsEmpty(int increment = 1) { - Interlocked.Add(ref _buffer.CountCIVisibility[328], increment); + Interlocked.Add(ref _buffer.CountCIVisibility[356], increment); } public void RecordCountCIVisibilityCodeCoverageErrors(int increment = 1) { - Interlocked.Add(ref _buffer.CountCIVisibility[329], increment); + Interlocked.Add(ref _buffer.CountCIVisibility[357], increment); } public void RecordCountCIVisibilityEarlyFlakeDetectionRequest(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityRequestCompressed tag, int increment = 1) { - var index = 330 + (int)tag; + var index = 358 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityEarlyFlakeDetectionRequestErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag, int increment = 1) { - var index = 332 + (int)tag; + var index = 360 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } } \ No newline at end of file diff --git a/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountCIVisibility.g.cs b/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountCIVisibility.g.cs index 2766115d192b..eb26f45d2c8d 100644 --- a/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountCIVisibility.g.cs +++ b/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountCIVisibility.g.cs @@ -11,7 +11,7 @@ namespace Datadog.Trace.Telemetry; internal partial class CiVisibilityMetricsTelemetryCollector { - private const int CountCIVisibilityLength = 343; + private const int CountCIVisibilityLength = 371; /// /// Creates the buffer for the values. @@ -69,6 +69,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:xunit", "event_type:session", "is_unsupported_ci" }), new(new[] { "test_framework:xunit", "event_type:session", "has_codeowner", "is_unsupported_ci" }), new(new[] { "test_framework:xunit", "event_type:session", "has_codeowner" }), + new(new[] { "test_framework:xunit", "event_type:session", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:xunit", "event_type:session", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:xunit", "event_type:session", "has_codeowner", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:xunit", "event_type:session", "has_codeowner", "agentless_log_submission_enabled" }), new(new[] { "test_framework:xunit", "event_type:test", "is_new:true" }), new(new[] { "test_framework:xunit", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow" }), new(new[] { "test_framework:xunit", "event_type:test", "browser_driver:selenium" }), @@ -85,6 +89,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:nunit", "event_type:session", "is_unsupported_ci" }), new(new[] { "test_framework:nunit", "event_type:session", "has_codeowner", "is_unsupported_ci" }), new(new[] { "test_framework:nunit", "event_type:session", "has_codeowner" }), + new(new[] { "test_framework:nunit", "event_type:session", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:nunit", "event_type:session", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:nunit", "event_type:session", "has_codeowner", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:nunit", "event_type:session", "has_codeowner", "agentless_log_submission_enabled" }), new(new[] { "test_framework:nunit", "event_type:test", "is_new:true" }), new(new[] { "test_framework:nunit", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow" }), new(new[] { "test_framework:nunit", "event_type:test", "browser_driver:selenium" }), @@ -101,6 +109,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:mstest", "event_type:session", "is_unsupported_ci" }), new(new[] { "test_framework:mstest", "event_type:session", "has_codeowner", "is_unsupported_ci" }), new(new[] { "test_framework:mstest", "event_type:session", "has_codeowner" }), + new(new[] { "test_framework:mstest", "event_type:session", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:mstest", "event_type:session", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:mstest", "event_type:session", "has_codeowner", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:mstest", "event_type:session", "has_codeowner", "agentless_log_submission_enabled" }), new(new[] { "test_framework:mstest", "event_type:test", "is_new:true" }), new(new[] { "test_framework:mstest", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow" }), new(new[] { "test_framework:mstest", "event_type:test", "browser_driver:selenium" }), @@ -117,6 +129,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "is_unsupported_ci" }), new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "has_codeowner", "is_unsupported_ci" }), new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "has_codeowner" }), + new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "has_codeowner", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "has_codeowner", "agentless_log_submission_enabled" }), new(new[] { "test_framework:benchmarkdotnet", "event_type:test", "is_new:true" }), new(new[] { "test_framework:benchmarkdotnet", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow" }), new(new[] { "test_framework:benchmarkdotnet", "event_type:test", "browser_driver:selenium" }), @@ -133,6 +149,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:unknown", "event_type:session", "is_unsupported_ci" }), new(new[] { "test_framework:unknown", "event_type:session", "has_codeowner", "is_unsupported_ci" }), new(new[] { "test_framework:unknown", "event_type:session", "has_codeowner" }), + new(new[] { "test_framework:unknown", "event_type:session", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:unknown", "event_type:session", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:unknown", "event_type:session", "has_codeowner", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:unknown", "event_type:session", "has_codeowner", "agentless_log_submission_enabled" }), new(new[] { "test_framework:unknown", "event_type:test", "is_new:true" }), new(new[] { "test_framework:unknown", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow" }), new(new[] { "test_framework:unknown", "event_type:test", "browser_driver:selenium" }), @@ -141,7 +161,7 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:unknown", "event_type:test", "browser_driver:selenium", "is_rum:true" }), new(new[] { "test_framework:unknown", "event_type:test", "is_new:true", "browser_driver:selenium", "is_rum:true" }), new(new[] { "test_framework:unknown", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow", "browser_driver:selenium", "is_rum:true" }), - // code_coverage_started, index = 120 + // code_coverage_started, index = 140 new(new[] { "test_framework:xunit", "library:custom" }), new(new[] { "test_framework:xunit", "library:unknown" }), new(new[] { "test_framework:nunit", "library:custom" }), @@ -152,7 +172,7 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:benchmarkdotnet", "library:unknown" }), new(new[] { "test_framework:unknown", "library:custom" }), new(new[] { "test_framework:unknown", "library:unknown" }), - // code_coverage_finished, index = 130 + // code_coverage_finished, index = 150 new(new[] { "test_framework:xunit", "library:custom" }), new(new[] { "test_framework:xunit", "library:unknown" }), new(new[] { "test_framework:nunit", "library:custom" }), @@ -163,19 +183,19 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:benchmarkdotnet", "library:unknown" }), new(new[] { "test_framework:unknown", "library:custom" }), new(new[] { "test_framework:unknown", "library:unknown" }), - // manual_api_events, index = 140 + // manual_api_events, index = 160 new(new[] { "event_type:test" }), new(new[] { "event_type:suite" }), new(new[] { "event_type:module" }), new(new[] { "event_type:session" }), - // events_enqueued_for_serialization, index = 144 + // events_enqueued_for_serialization, index = 164 new(null), - // endpoint_payload.requests, index = 145 + // endpoint_payload.requests, index = 165 new(new[] { "endpoint:test_cycle" }), new(new[] { "endpoint:test_cycle", "rq_compressed:true" }), new(new[] { "endpoint:code_coverage" }), new(new[] { "endpoint:code_coverage", "rq_compressed:true" }), - // endpoint_payload.requests_errors, index = 149 + // endpoint_payload.requests_errors, index = 169 new(new[] { "endpoint:test_cycle", "error_type:timeout" }), new(new[] { "endpoint:test_cycle", "error_type:network" }), new(new[] { "endpoint:test_cycle", "error_type:status_code" }), @@ -198,10 +218,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "endpoint:code_coverage", "error_type:status_code_4xx_response", "status_code:404" }), new(new[] { "endpoint:code_coverage", "error_type:status_code_4xx_response", "status_code:408" }), new(new[] { "endpoint:code_coverage", "error_type:status_code_4xx_response", "status_code:429" }), - // endpoint_payload.dropped, index = 171 + // endpoint_payload.dropped, index = 191 new(new[] { "endpoint:test_cycle" }), new(new[] { "endpoint:code_coverage" }), - // git.command, index = 173 + // git.command, index = 193 new(new[] { "command:get_repository" }), new(new[] { "command:get_branch" }), new(new[] { "command:get_remote" }), @@ -211,7 +231,7 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "command:get_local_commits" }), new(new[] { "command:get_objects" }), new(new[] { "command:pack_objects" }), - // git.command_errors, index = 182 + // git.command_errors, index = 202 new(new[] { "command:get_repository", "exit_code:missing" }), new(new[] { "command:get_repository", "exit_code:unknown" }), new(new[] { "command:get_repository", "exit_code:-1" }), @@ -284,10 +304,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "command:pack_objects", "exit_code:127" }), new(new[] { "command:pack_objects", "exit_code:128" }), new(new[] { "command:pack_objects", "exit_code:129" }), - // git_requests.search_commits, index = 254 + // git_requests.search_commits, index = 274 new(null), new(new[] { "rq_compressed:true" }), - // git_requests.search_commits_errors, index = 256 + // git_requests.search_commits_errors, index = 276 new(new[] { "error_type:timeout" }), new(new[] { "error_type:network" }), new(new[] { "error_type:status_code" }), @@ -299,10 +319,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "error_type:status_code_4xx_response", "status_code:404" }), new(new[] { "error_type:status_code_4xx_response", "status_code:408" }), new(new[] { "error_type:status_code_4xx_response", "status_code:429" }), - // git_requests.objects_pack, index = 267 + // git_requests.objects_pack, index = 287 new(null), new(new[] { "rq_compressed:true" }), - // git_requests.objects_pack_errors, index = 269 + // git_requests.objects_pack_errors, index = 289 new(new[] { "error_type:timeout" }), new(new[] { "error_type:network" }), new(new[] { "error_type:status_code" }), @@ -314,10 +334,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "error_type:status_code_4xx_response", "status_code:404" }), new(new[] { "error_type:status_code_4xx_response", "status_code:408" }), new(new[] { "error_type:status_code_4xx_response", "status_code:429" }), - // git_requests.settings, index = 280 + // git_requests.settings, index = 300 new(null), new(new[] { "rq_compressed:true" }), - // git_requests.settings_errors, index = 282 + // git_requests.settings_errors, index = 302 new(new[] { "error_type:timeout" }), new(new[] { "error_type:network" }), new(new[] { "error_type:status_code" }), @@ -329,7 +349,7 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "error_type:status_code_4xx_response", "status_code:404" }), new(new[] { "error_type:status_code_4xx_response", "status_code:408" }), new(new[] { "error_type:status_code_4xx_response", "status_code:429" }), - // git_requests.settings_response, index = 293 + // git_requests.settings_response, index = 313 new(null), new(new[] { "coverage_enabled" }), new(new[] { "itrskip_enabled" }), @@ -338,10 +358,18 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "coverage_enabled", "early_flake_detection_enabled:true" }), new(new[] { "itrskip_enabled", "early_flake_detection_enabled:true" }), new(new[] { "coverage_enabled", "itrskip_enabled", "early_flake_detection_enabled:true" }), - // itr_skippable_tests.request, index = 301 + new(new[] { "flaky_test_retries_enabled:true" }), + new(new[] { "coverage_enabled", "flaky_test_retries_enabled:true" }), + new(new[] { "itrskip_enabled", "flaky_test_retries_enabled:true" }), + new(new[] { "coverage_enabled", "itrskip_enabled", "flaky_test_retries_enabled:true" }), + new(new[] { "early_flake_detection_enabled:true", "flaky_test_retries_enabled:true" }), + new(new[] { "coverage_enabled", "early_flake_detection_enabled:true", "flaky_test_retries_enabled:true" }), + new(new[] { "itrskip_enabled", "early_flake_detection_enabled:true", "flaky_test_retries_enabled:true" }), + new(new[] { "coverage_enabled", "itrskip_enabled", "early_flake_detection_enabled:true", "flaky_test_retries_enabled:true" }), + // itr_skippable_tests.request, index = 329 new(null), new(new[] { "rq_compressed:true" }), - // itr_skippable_tests.request_errors, index = 303 + // itr_skippable_tests.request_errors, index = 331 new(new[] { "error_type:timeout" }), new(new[] { "error_type:network" }), new(new[] { "error_type:status_code" }), @@ -353,33 +381,33 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "error_type:status_code_4xx_response", "status_code:404" }), new(new[] { "error_type:status_code_4xx_response", "status_code:408" }), new(new[] { "error_type:status_code_4xx_response", "status_code:429" }), - // itr_skippable_tests.response_tests, index = 314 + // itr_skippable_tests.response_tests, index = 342 new(null), - // itr_skippable_tests.response_suites, index = 315 + // itr_skippable_tests.response_suites, index = 343 new(null), - // itr_skipped, index = 316 + // itr_skipped, index = 344 new(new[] { "event_type:test" }), new(new[] { "event_type:suite" }), new(new[] { "event_type:module" }), new(new[] { "event_type:session" }), - // itr_unskippable, index = 320 + // itr_unskippable, index = 348 new(new[] { "event_type:test" }), new(new[] { "event_type:suite" }), new(new[] { "event_type:module" }), new(new[] { "event_type:session" }), - // itr_forced_run, index = 324 + // itr_forced_run, index = 352 new(new[] { "event_type:test" }), new(new[] { "event_type:suite" }), new(new[] { "event_type:module" }), new(new[] { "event_type:session" }), - // code_coverage.is_empty, index = 328 + // code_coverage.is_empty, index = 356 new(null), - // code_coverage.errors, index = 329 + // code_coverage.errors, index = 357 new(null), - // early_flake_detection.request, index = 330 + // early_flake_detection.request, index = 358 new(null), new(new[] { "rq_compressed:true" }), - // early_flake_detection.request_errors, index = 332 + // early_flake_detection.request_errors, index = 360 new(new[] { "error_type:timeout" }), new(new[] { "error_type:network" }), new(new[] { "error_type:status_code" }), @@ -399,7 +427,7 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() /// It is equal to the cardinality of the tag combinations (or 1 if there are no tags) /// private static int[] CountCIVisibilityEntryCounts { get; } - = new int[]{ 40, 80, 10, 10, 4, 1, 4, 22, 2, 9, 72, 2, 11, 2, 11, 2, 11, 8, 2, 11, 1, 1, 4, 4, 4, 1, 1, 2, 11, }; + = new int[]{ 40, 100, 10, 10, 4, 1, 4, 22, 2, 9, 72, 2, 11, 2, 11, 2, 11, 16, 2, 11, 1, 1, 4, 4, 4, 1, 1, 2, 11, }; public void RecordCountCIVisibilityEventCreated(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestFramework tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmark tag2, int increment = 1) { @@ -409,164 +437,164 @@ public void RecordCountCIVisibilityEventCreated(Datadog.Trace.Telemetry.Metrics. public void RecordCountCIVisibilityEventFinished(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestFramework tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmarkAndEarlyFlakeDetectionAndRum tag2, int increment = 1) { - var index = 40 + ((int)tag1 * 16) + (int)tag2; + var index = 40 + ((int)tag1 * 20) + (int)tag2; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityCodeCoverageStarted(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestFramework tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityCoverageLibrary tag2, int increment = 1) { - var index = 120 + ((int)tag1 * 2) + (int)tag2; + var index = 140 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityCodeCoverageFinished(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestFramework tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityCoverageLibrary tag2, int increment = 1) { - var index = 130 + ((int)tag1 * 2) + (int)tag2; + var index = 150 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityManualApiEvent(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventType tag, int increment = 1) { - var index = 140 + (int)tag; + var index = 160 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityEventsEnqueueForSerialization(int increment = 1) { - Interlocked.Add(ref _buffer.CountCIVisibility[144], increment); + Interlocked.Add(ref _buffer.CountCIVisibility[164], increment); } public void RecordCountCIVisibilityEndpointPayloadRequests(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityEndpointAndCompression tag, int increment = 1) { - var index = 145 + (int)tag; + var index = 165 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityEndpointPayloadRequestsErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityEndpoints tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag2, int increment = 1) { - var index = 149 + ((int)tag1 * 11) + (int)tag2; + var index = 169 + ((int)tag1 * 11) + (int)tag2; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityEndpointPayloadDropped(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityEndpoints tag, int increment = 1) { - var index = 171 + (int)tag; + var index = 191 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitCommand(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityCommands tag, int increment = 1) { - var index = 173 + (int)tag; + var index = 193 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitCommandErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityCommands tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityExitCodes tag2, int increment = 1) { - var index = 182 + ((int)tag1 * 8) + (int)tag2; + var index = 202 + ((int)tag1 * 8) + (int)tag2; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsSearchCommits(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityRequestCompressed tag, int increment = 1) { - var index = 254 + (int)tag; + var index = 274 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsSearchCommitsErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag, int increment = 1) { - var index = 256 + (int)tag; + var index = 276 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsObjectsPack(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityRequestCompressed tag, int increment = 1) { - var index = 267 + (int)tag; + var index = 287 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsObjectsPackErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag, int increment = 1) { - var index = 269 + (int)tag; + var index = 289 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsSettings(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityRequestCompressed tag, int increment = 1) { - var index = 280 + (int)tag; + var index = 300 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsSettingsErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag, int increment = 1) { - var index = 282 + (int)tag; + var index = 302 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsSettingsResponse(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityITRSettingsResponse tag, int increment = 1) { - var index = 293 + (int)tag; + var index = 313 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityITRSkippableTestsRequest(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityRequestCompressed tag, int increment = 1) { - var index = 301 + (int)tag; + var index = 329 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityITRSkippableTestsRequestErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag, int increment = 1) { - var index = 303 + (int)tag; + var index = 331 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityITRSkippableTestsResponseTests(int increment = 1) { - Interlocked.Add(ref _buffer.CountCIVisibility[314], increment); + Interlocked.Add(ref _buffer.CountCIVisibility[342], increment); } public void RecordCountCIVisibilityITRSkippableTestsResponseSuites(int increment = 1) { - Interlocked.Add(ref _buffer.CountCIVisibility[315], increment); + Interlocked.Add(ref _buffer.CountCIVisibility[343], increment); } public void RecordCountCIVisibilityITRSkipped(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventType tag, int increment = 1) { - var index = 316 + (int)tag; + var index = 344 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityITRUnskippable(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventType tag, int increment = 1) { - var index = 320 + (int)tag; + var index = 348 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityITRForcedRun(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventType tag, int increment = 1) { - var index = 324 + (int)tag; + var index = 352 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityCodeCoverageIsEmpty(int increment = 1) { - Interlocked.Add(ref _buffer.CountCIVisibility[328], increment); + Interlocked.Add(ref _buffer.CountCIVisibility[356], increment); } public void RecordCountCIVisibilityCodeCoverageErrors(int increment = 1) { - Interlocked.Add(ref _buffer.CountCIVisibility[329], increment); + Interlocked.Add(ref _buffer.CountCIVisibility[357], increment); } public void RecordCountCIVisibilityEarlyFlakeDetectionRequest(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityRequestCompressed tag, int increment = 1) { - var index = 330 + (int)tag; + var index = 358 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityEarlyFlakeDetectionRequestErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag, int increment = 1) { - var index = 332 + (int)tag; + var index = 360 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } } \ No newline at end of file diff --git a/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountCIVisibility.g.cs b/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountCIVisibility.g.cs index 2766115d192b..eb26f45d2c8d 100644 --- a/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountCIVisibility.g.cs +++ b/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountCIVisibility.g.cs @@ -11,7 +11,7 @@ namespace Datadog.Trace.Telemetry; internal partial class CiVisibilityMetricsTelemetryCollector { - private const int CountCIVisibilityLength = 343; + private const int CountCIVisibilityLength = 371; /// /// Creates the buffer for the values. @@ -69,6 +69,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:xunit", "event_type:session", "is_unsupported_ci" }), new(new[] { "test_framework:xunit", "event_type:session", "has_codeowner", "is_unsupported_ci" }), new(new[] { "test_framework:xunit", "event_type:session", "has_codeowner" }), + new(new[] { "test_framework:xunit", "event_type:session", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:xunit", "event_type:session", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:xunit", "event_type:session", "has_codeowner", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:xunit", "event_type:session", "has_codeowner", "agentless_log_submission_enabled" }), new(new[] { "test_framework:xunit", "event_type:test", "is_new:true" }), new(new[] { "test_framework:xunit", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow" }), new(new[] { "test_framework:xunit", "event_type:test", "browser_driver:selenium" }), @@ -85,6 +89,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:nunit", "event_type:session", "is_unsupported_ci" }), new(new[] { "test_framework:nunit", "event_type:session", "has_codeowner", "is_unsupported_ci" }), new(new[] { "test_framework:nunit", "event_type:session", "has_codeowner" }), + new(new[] { "test_framework:nunit", "event_type:session", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:nunit", "event_type:session", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:nunit", "event_type:session", "has_codeowner", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:nunit", "event_type:session", "has_codeowner", "agentless_log_submission_enabled" }), new(new[] { "test_framework:nunit", "event_type:test", "is_new:true" }), new(new[] { "test_framework:nunit", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow" }), new(new[] { "test_framework:nunit", "event_type:test", "browser_driver:selenium" }), @@ -101,6 +109,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:mstest", "event_type:session", "is_unsupported_ci" }), new(new[] { "test_framework:mstest", "event_type:session", "has_codeowner", "is_unsupported_ci" }), new(new[] { "test_framework:mstest", "event_type:session", "has_codeowner" }), + new(new[] { "test_framework:mstest", "event_type:session", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:mstest", "event_type:session", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:mstest", "event_type:session", "has_codeowner", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:mstest", "event_type:session", "has_codeowner", "agentless_log_submission_enabled" }), new(new[] { "test_framework:mstest", "event_type:test", "is_new:true" }), new(new[] { "test_framework:mstest", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow" }), new(new[] { "test_framework:mstest", "event_type:test", "browser_driver:selenium" }), @@ -117,6 +129,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "is_unsupported_ci" }), new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "has_codeowner", "is_unsupported_ci" }), new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "has_codeowner" }), + new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "has_codeowner", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "has_codeowner", "agentless_log_submission_enabled" }), new(new[] { "test_framework:benchmarkdotnet", "event_type:test", "is_new:true" }), new(new[] { "test_framework:benchmarkdotnet", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow" }), new(new[] { "test_framework:benchmarkdotnet", "event_type:test", "browser_driver:selenium" }), @@ -133,6 +149,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:unknown", "event_type:session", "is_unsupported_ci" }), new(new[] { "test_framework:unknown", "event_type:session", "has_codeowner", "is_unsupported_ci" }), new(new[] { "test_framework:unknown", "event_type:session", "has_codeowner" }), + new(new[] { "test_framework:unknown", "event_type:session", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:unknown", "event_type:session", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:unknown", "event_type:session", "has_codeowner", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:unknown", "event_type:session", "has_codeowner", "agentless_log_submission_enabled" }), new(new[] { "test_framework:unknown", "event_type:test", "is_new:true" }), new(new[] { "test_framework:unknown", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow" }), new(new[] { "test_framework:unknown", "event_type:test", "browser_driver:selenium" }), @@ -141,7 +161,7 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:unknown", "event_type:test", "browser_driver:selenium", "is_rum:true" }), new(new[] { "test_framework:unknown", "event_type:test", "is_new:true", "browser_driver:selenium", "is_rum:true" }), new(new[] { "test_framework:unknown", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow", "browser_driver:selenium", "is_rum:true" }), - // code_coverage_started, index = 120 + // code_coverage_started, index = 140 new(new[] { "test_framework:xunit", "library:custom" }), new(new[] { "test_framework:xunit", "library:unknown" }), new(new[] { "test_framework:nunit", "library:custom" }), @@ -152,7 +172,7 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:benchmarkdotnet", "library:unknown" }), new(new[] { "test_framework:unknown", "library:custom" }), new(new[] { "test_framework:unknown", "library:unknown" }), - // code_coverage_finished, index = 130 + // code_coverage_finished, index = 150 new(new[] { "test_framework:xunit", "library:custom" }), new(new[] { "test_framework:xunit", "library:unknown" }), new(new[] { "test_framework:nunit", "library:custom" }), @@ -163,19 +183,19 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:benchmarkdotnet", "library:unknown" }), new(new[] { "test_framework:unknown", "library:custom" }), new(new[] { "test_framework:unknown", "library:unknown" }), - // manual_api_events, index = 140 + // manual_api_events, index = 160 new(new[] { "event_type:test" }), new(new[] { "event_type:suite" }), new(new[] { "event_type:module" }), new(new[] { "event_type:session" }), - // events_enqueued_for_serialization, index = 144 + // events_enqueued_for_serialization, index = 164 new(null), - // endpoint_payload.requests, index = 145 + // endpoint_payload.requests, index = 165 new(new[] { "endpoint:test_cycle" }), new(new[] { "endpoint:test_cycle", "rq_compressed:true" }), new(new[] { "endpoint:code_coverage" }), new(new[] { "endpoint:code_coverage", "rq_compressed:true" }), - // endpoint_payload.requests_errors, index = 149 + // endpoint_payload.requests_errors, index = 169 new(new[] { "endpoint:test_cycle", "error_type:timeout" }), new(new[] { "endpoint:test_cycle", "error_type:network" }), new(new[] { "endpoint:test_cycle", "error_type:status_code" }), @@ -198,10 +218,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "endpoint:code_coverage", "error_type:status_code_4xx_response", "status_code:404" }), new(new[] { "endpoint:code_coverage", "error_type:status_code_4xx_response", "status_code:408" }), new(new[] { "endpoint:code_coverage", "error_type:status_code_4xx_response", "status_code:429" }), - // endpoint_payload.dropped, index = 171 + // endpoint_payload.dropped, index = 191 new(new[] { "endpoint:test_cycle" }), new(new[] { "endpoint:code_coverage" }), - // git.command, index = 173 + // git.command, index = 193 new(new[] { "command:get_repository" }), new(new[] { "command:get_branch" }), new(new[] { "command:get_remote" }), @@ -211,7 +231,7 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "command:get_local_commits" }), new(new[] { "command:get_objects" }), new(new[] { "command:pack_objects" }), - // git.command_errors, index = 182 + // git.command_errors, index = 202 new(new[] { "command:get_repository", "exit_code:missing" }), new(new[] { "command:get_repository", "exit_code:unknown" }), new(new[] { "command:get_repository", "exit_code:-1" }), @@ -284,10 +304,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "command:pack_objects", "exit_code:127" }), new(new[] { "command:pack_objects", "exit_code:128" }), new(new[] { "command:pack_objects", "exit_code:129" }), - // git_requests.search_commits, index = 254 + // git_requests.search_commits, index = 274 new(null), new(new[] { "rq_compressed:true" }), - // git_requests.search_commits_errors, index = 256 + // git_requests.search_commits_errors, index = 276 new(new[] { "error_type:timeout" }), new(new[] { "error_type:network" }), new(new[] { "error_type:status_code" }), @@ -299,10 +319,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "error_type:status_code_4xx_response", "status_code:404" }), new(new[] { "error_type:status_code_4xx_response", "status_code:408" }), new(new[] { "error_type:status_code_4xx_response", "status_code:429" }), - // git_requests.objects_pack, index = 267 + // git_requests.objects_pack, index = 287 new(null), new(new[] { "rq_compressed:true" }), - // git_requests.objects_pack_errors, index = 269 + // git_requests.objects_pack_errors, index = 289 new(new[] { "error_type:timeout" }), new(new[] { "error_type:network" }), new(new[] { "error_type:status_code" }), @@ -314,10 +334,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "error_type:status_code_4xx_response", "status_code:404" }), new(new[] { "error_type:status_code_4xx_response", "status_code:408" }), new(new[] { "error_type:status_code_4xx_response", "status_code:429" }), - // git_requests.settings, index = 280 + // git_requests.settings, index = 300 new(null), new(new[] { "rq_compressed:true" }), - // git_requests.settings_errors, index = 282 + // git_requests.settings_errors, index = 302 new(new[] { "error_type:timeout" }), new(new[] { "error_type:network" }), new(new[] { "error_type:status_code" }), @@ -329,7 +349,7 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "error_type:status_code_4xx_response", "status_code:404" }), new(new[] { "error_type:status_code_4xx_response", "status_code:408" }), new(new[] { "error_type:status_code_4xx_response", "status_code:429" }), - // git_requests.settings_response, index = 293 + // git_requests.settings_response, index = 313 new(null), new(new[] { "coverage_enabled" }), new(new[] { "itrskip_enabled" }), @@ -338,10 +358,18 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "coverage_enabled", "early_flake_detection_enabled:true" }), new(new[] { "itrskip_enabled", "early_flake_detection_enabled:true" }), new(new[] { "coverage_enabled", "itrskip_enabled", "early_flake_detection_enabled:true" }), - // itr_skippable_tests.request, index = 301 + new(new[] { "flaky_test_retries_enabled:true" }), + new(new[] { "coverage_enabled", "flaky_test_retries_enabled:true" }), + new(new[] { "itrskip_enabled", "flaky_test_retries_enabled:true" }), + new(new[] { "coverage_enabled", "itrskip_enabled", "flaky_test_retries_enabled:true" }), + new(new[] { "early_flake_detection_enabled:true", "flaky_test_retries_enabled:true" }), + new(new[] { "coverage_enabled", "early_flake_detection_enabled:true", "flaky_test_retries_enabled:true" }), + new(new[] { "itrskip_enabled", "early_flake_detection_enabled:true", "flaky_test_retries_enabled:true" }), + new(new[] { "coverage_enabled", "itrskip_enabled", "early_flake_detection_enabled:true", "flaky_test_retries_enabled:true" }), + // itr_skippable_tests.request, index = 329 new(null), new(new[] { "rq_compressed:true" }), - // itr_skippable_tests.request_errors, index = 303 + // itr_skippable_tests.request_errors, index = 331 new(new[] { "error_type:timeout" }), new(new[] { "error_type:network" }), new(new[] { "error_type:status_code" }), @@ -353,33 +381,33 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "error_type:status_code_4xx_response", "status_code:404" }), new(new[] { "error_type:status_code_4xx_response", "status_code:408" }), new(new[] { "error_type:status_code_4xx_response", "status_code:429" }), - // itr_skippable_tests.response_tests, index = 314 + // itr_skippable_tests.response_tests, index = 342 new(null), - // itr_skippable_tests.response_suites, index = 315 + // itr_skippable_tests.response_suites, index = 343 new(null), - // itr_skipped, index = 316 + // itr_skipped, index = 344 new(new[] { "event_type:test" }), new(new[] { "event_type:suite" }), new(new[] { "event_type:module" }), new(new[] { "event_type:session" }), - // itr_unskippable, index = 320 + // itr_unskippable, index = 348 new(new[] { "event_type:test" }), new(new[] { "event_type:suite" }), new(new[] { "event_type:module" }), new(new[] { "event_type:session" }), - // itr_forced_run, index = 324 + // itr_forced_run, index = 352 new(new[] { "event_type:test" }), new(new[] { "event_type:suite" }), new(new[] { "event_type:module" }), new(new[] { "event_type:session" }), - // code_coverage.is_empty, index = 328 + // code_coverage.is_empty, index = 356 new(null), - // code_coverage.errors, index = 329 + // code_coverage.errors, index = 357 new(null), - // early_flake_detection.request, index = 330 + // early_flake_detection.request, index = 358 new(null), new(new[] { "rq_compressed:true" }), - // early_flake_detection.request_errors, index = 332 + // early_flake_detection.request_errors, index = 360 new(new[] { "error_type:timeout" }), new(new[] { "error_type:network" }), new(new[] { "error_type:status_code" }), @@ -399,7 +427,7 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() /// It is equal to the cardinality of the tag combinations (or 1 if there are no tags) /// private static int[] CountCIVisibilityEntryCounts { get; } - = new int[]{ 40, 80, 10, 10, 4, 1, 4, 22, 2, 9, 72, 2, 11, 2, 11, 2, 11, 8, 2, 11, 1, 1, 4, 4, 4, 1, 1, 2, 11, }; + = new int[]{ 40, 100, 10, 10, 4, 1, 4, 22, 2, 9, 72, 2, 11, 2, 11, 2, 11, 16, 2, 11, 1, 1, 4, 4, 4, 1, 1, 2, 11, }; public void RecordCountCIVisibilityEventCreated(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestFramework tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmark tag2, int increment = 1) { @@ -409,164 +437,164 @@ public void RecordCountCIVisibilityEventCreated(Datadog.Trace.Telemetry.Metrics. public void RecordCountCIVisibilityEventFinished(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestFramework tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmarkAndEarlyFlakeDetectionAndRum tag2, int increment = 1) { - var index = 40 + ((int)tag1 * 16) + (int)tag2; + var index = 40 + ((int)tag1 * 20) + (int)tag2; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityCodeCoverageStarted(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestFramework tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityCoverageLibrary tag2, int increment = 1) { - var index = 120 + ((int)tag1 * 2) + (int)tag2; + var index = 140 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityCodeCoverageFinished(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestFramework tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityCoverageLibrary tag2, int increment = 1) { - var index = 130 + ((int)tag1 * 2) + (int)tag2; + var index = 150 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityManualApiEvent(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventType tag, int increment = 1) { - var index = 140 + (int)tag; + var index = 160 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityEventsEnqueueForSerialization(int increment = 1) { - Interlocked.Add(ref _buffer.CountCIVisibility[144], increment); + Interlocked.Add(ref _buffer.CountCIVisibility[164], increment); } public void RecordCountCIVisibilityEndpointPayloadRequests(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityEndpointAndCompression tag, int increment = 1) { - var index = 145 + (int)tag; + var index = 165 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityEndpointPayloadRequestsErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityEndpoints tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag2, int increment = 1) { - var index = 149 + ((int)tag1 * 11) + (int)tag2; + var index = 169 + ((int)tag1 * 11) + (int)tag2; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityEndpointPayloadDropped(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityEndpoints tag, int increment = 1) { - var index = 171 + (int)tag; + var index = 191 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitCommand(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityCommands tag, int increment = 1) { - var index = 173 + (int)tag; + var index = 193 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitCommandErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityCommands tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityExitCodes tag2, int increment = 1) { - var index = 182 + ((int)tag1 * 8) + (int)tag2; + var index = 202 + ((int)tag1 * 8) + (int)tag2; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsSearchCommits(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityRequestCompressed tag, int increment = 1) { - var index = 254 + (int)tag; + var index = 274 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsSearchCommitsErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag, int increment = 1) { - var index = 256 + (int)tag; + var index = 276 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsObjectsPack(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityRequestCompressed tag, int increment = 1) { - var index = 267 + (int)tag; + var index = 287 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsObjectsPackErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag, int increment = 1) { - var index = 269 + (int)tag; + var index = 289 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsSettings(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityRequestCompressed tag, int increment = 1) { - var index = 280 + (int)tag; + var index = 300 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsSettingsErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag, int increment = 1) { - var index = 282 + (int)tag; + var index = 302 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsSettingsResponse(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityITRSettingsResponse tag, int increment = 1) { - var index = 293 + (int)tag; + var index = 313 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityITRSkippableTestsRequest(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityRequestCompressed tag, int increment = 1) { - var index = 301 + (int)tag; + var index = 329 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityITRSkippableTestsRequestErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag, int increment = 1) { - var index = 303 + (int)tag; + var index = 331 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityITRSkippableTestsResponseTests(int increment = 1) { - Interlocked.Add(ref _buffer.CountCIVisibility[314], increment); + Interlocked.Add(ref _buffer.CountCIVisibility[342], increment); } public void RecordCountCIVisibilityITRSkippableTestsResponseSuites(int increment = 1) { - Interlocked.Add(ref _buffer.CountCIVisibility[315], increment); + Interlocked.Add(ref _buffer.CountCIVisibility[343], increment); } public void RecordCountCIVisibilityITRSkipped(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventType tag, int increment = 1) { - var index = 316 + (int)tag; + var index = 344 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityITRUnskippable(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventType tag, int increment = 1) { - var index = 320 + (int)tag; + var index = 348 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityITRForcedRun(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventType tag, int increment = 1) { - var index = 324 + (int)tag; + var index = 352 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityCodeCoverageIsEmpty(int increment = 1) { - Interlocked.Add(ref _buffer.CountCIVisibility[328], increment); + Interlocked.Add(ref _buffer.CountCIVisibility[356], increment); } public void RecordCountCIVisibilityCodeCoverageErrors(int increment = 1) { - Interlocked.Add(ref _buffer.CountCIVisibility[329], increment); + Interlocked.Add(ref _buffer.CountCIVisibility[357], increment); } public void RecordCountCIVisibilityEarlyFlakeDetectionRequest(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityRequestCompressed tag, int increment = 1) { - var index = 330 + (int)tag; + var index = 358 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityEarlyFlakeDetectionRequestErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag, int increment = 1) { - var index = 332 + (int)tag; + var index = 360 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } } \ No newline at end of file diff --git a/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountCIVisibility.g.cs b/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountCIVisibility.g.cs index 2766115d192b..eb26f45d2c8d 100644 --- a/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountCIVisibility.g.cs +++ b/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountCIVisibility.g.cs @@ -11,7 +11,7 @@ namespace Datadog.Trace.Telemetry; internal partial class CiVisibilityMetricsTelemetryCollector { - private const int CountCIVisibilityLength = 343; + private const int CountCIVisibilityLength = 371; /// /// Creates the buffer for the values. @@ -69,6 +69,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:xunit", "event_type:session", "is_unsupported_ci" }), new(new[] { "test_framework:xunit", "event_type:session", "has_codeowner", "is_unsupported_ci" }), new(new[] { "test_framework:xunit", "event_type:session", "has_codeowner" }), + new(new[] { "test_framework:xunit", "event_type:session", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:xunit", "event_type:session", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:xunit", "event_type:session", "has_codeowner", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:xunit", "event_type:session", "has_codeowner", "agentless_log_submission_enabled" }), new(new[] { "test_framework:xunit", "event_type:test", "is_new:true" }), new(new[] { "test_framework:xunit", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow" }), new(new[] { "test_framework:xunit", "event_type:test", "browser_driver:selenium" }), @@ -85,6 +89,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:nunit", "event_type:session", "is_unsupported_ci" }), new(new[] { "test_framework:nunit", "event_type:session", "has_codeowner", "is_unsupported_ci" }), new(new[] { "test_framework:nunit", "event_type:session", "has_codeowner" }), + new(new[] { "test_framework:nunit", "event_type:session", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:nunit", "event_type:session", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:nunit", "event_type:session", "has_codeowner", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:nunit", "event_type:session", "has_codeowner", "agentless_log_submission_enabled" }), new(new[] { "test_framework:nunit", "event_type:test", "is_new:true" }), new(new[] { "test_framework:nunit", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow" }), new(new[] { "test_framework:nunit", "event_type:test", "browser_driver:selenium" }), @@ -101,6 +109,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:mstest", "event_type:session", "is_unsupported_ci" }), new(new[] { "test_framework:mstest", "event_type:session", "has_codeowner", "is_unsupported_ci" }), new(new[] { "test_framework:mstest", "event_type:session", "has_codeowner" }), + new(new[] { "test_framework:mstest", "event_type:session", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:mstest", "event_type:session", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:mstest", "event_type:session", "has_codeowner", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:mstest", "event_type:session", "has_codeowner", "agentless_log_submission_enabled" }), new(new[] { "test_framework:mstest", "event_type:test", "is_new:true" }), new(new[] { "test_framework:mstest", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow" }), new(new[] { "test_framework:mstest", "event_type:test", "browser_driver:selenium" }), @@ -117,6 +129,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "is_unsupported_ci" }), new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "has_codeowner", "is_unsupported_ci" }), new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "has_codeowner" }), + new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "has_codeowner", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:benchmarkdotnet", "event_type:session", "has_codeowner", "agentless_log_submission_enabled" }), new(new[] { "test_framework:benchmarkdotnet", "event_type:test", "is_new:true" }), new(new[] { "test_framework:benchmarkdotnet", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow" }), new(new[] { "test_framework:benchmarkdotnet", "event_type:test", "browser_driver:selenium" }), @@ -133,6 +149,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:unknown", "event_type:session", "is_unsupported_ci" }), new(new[] { "test_framework:unknown", "event_type:session", "has_codeowner", "is_unsupported_ci" }), new(new[] { "test_framework:unknown", "event_type:session", "has_codeowner" }), + new(new[] { "test_framework:unknown", "event_type:session", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:unknown", "event_type:session", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:unknown", "event_type:session", "has_codeowner", "is_unsupported_ci", "agentless_log_submission_enabled" }), + new(new[] { "test_framework:unknown", "event_type:session", "has_codeowner", "agentless_log_submission_enabled" }), new(new[] { "test_framework:unknown", "event_type:test", "is_new:true" }), new(new[] { "test_framework:unknown", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow" }), new(new[] { "test_framework:unknown", "event_type:test", "browser_driver:selenium" }), @@ -141,7 +161,7 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:unknown", "event_type:test", "browser_driver:selenium", "is_rum:true" }), new(new[] { "test_framework:unknown", "event_type:test", "is_new:true", "browser_driver:selenium", "is_rum:true" }), new(new[] { "test_framework:unknown", "event_type:test", "is_new:true", "early_flake_detection_abort_reason:slow", "browser_driver:selenium", "is_rum:true" }), - // code_coverage_started, index = 120 + // code_coverage_started, index = 140 new(new[] { "test_framework:xunit", "library:custom" }), new(new[] { "test_framework:xunit", "library:unknown" }), new(new[] { "test_framework:nunit", "library:custom" }), @@ -152,7 +172,7 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:benchmarkdotnet", "library:unknown" }), new(new[] { "test_framework:unknown", "library:custom" }), new(new[] { "test_framework:unknown", "library:unknown" }), - // code_coverage_finished, index = 130 + // code_coverage_finished, index = 150 new(new[] { "test_framework:xunit", "library:custom" }), new(new[] { "test_framework:xunit", "library:unknown" }), new(new[] { "test_framework:nunit", "library:custom" }), @@ -163,19 +183,19 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "test_framework:benchmarkdotnet", "library:unknown" }), new(new[] { "test_framework:unknown", "library:custom" }), new(new[] { "test_framework:unknown", "library:unknown" }), - // manual_api_events, index = 140 + // manual_api_events, index = 160 new(new[] { "event_type:test" }), new(new[] { "event_type:suite" }), new(new[] { "event_type:module" }), new(new[] { "event_type:session" }), - // events_enqueued_for_serialization, index = 144 + // events_enqueued_for_serialization, index = 164 new(null), - // endpoint_payload.requests, index = 145 + // endpoint_payload.requests, index = 165 new(new[] { "endpoint:test_cycle" }), new(new[] { "endpoint:test_cycle", "rq_compressed:true" }), new(new[] { "endpoint:code_coverage" }), new(new[] { "endpoint:code_coverage", "rq_compressed:true" }), - // endpoint_payload.requests_errors, index = 149 + // endpoint_payload.requests_errors, index = 169 new(new[] { "endpoint:test_cycle", "error_type:timeout" }), new(new[] { "endpoint:test_cycle", "error_type:network" }), new(new[] { "endpoint:test_cycle", "error_type:status_code" }), @@ -198,10 +218,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "endpoint:code_coverage", "error_type:status_code_4xx_response", "status_code:404" }), new(new[] { "endpoint:code_coverage", "error_type:status_code_4xx_response", "status_code:408" }), new(new[] { "endpoint:code_coverage", "error_type:status_code_4xx_response", "status_code:429" }), - // endpoint_payload.dropped, index = 171 + // endpoint_payload.dropped, index = 191 new(new[] { "endpoint:test_cycle" }), new(new[] { "endpoint:code_coverage" }), - // git.command, index = 173 + // git.command, index = 193 new(new[] { "command:get_repository" }), new(new[] { "command:get_branch" }), new(new[] { "command:get_remote" }), @@ -211,7 +231,7 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "command:get_local_commits" }), new(new[] { "command:get_objects" }), new(new[] { "command:pack_objects" }), - // git.command_errors, index = 182 + // git.command_errors, index = 202 new(new[] { "command:get_repository", "exit_code:missing" }), new(new[] { "command:get_repository", "exit_code:unknown" }), new(new[] { "command:get_repository", "exit_code:-1" }), @@ -284,10 +304,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "command:pack_objects", "exit_code:127" }), new(new[] { "command:pack_objects", "exit_code:128" }), new(new[] { "command:pack_objects", "exit_code:129" }), - // git_requests.search_commits, index = 254 + // git_requests.search_commits, index = 274 new(null), new(new[] { "rq_compressed:true" }), - // git_requests.search_commits_errors, index = 256 + // git_requests.search_commits_errors, index = 276 new(new[] { "error_type:timeout" }), new(new[] { "error_type:network" }), new(new[] { "error_type:status_code" }), @@ -299,10 +319,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "error_type:status_code_4xx_response", "status_code:404" }), new(new[] { "error_type:status_code_4xx_response", "status_code:408" }), new(new[] { "error_type:status_code_4xx_response", "status_code:429" }), - // git_requests.objects_pack, index = 267 + // git_requests.objects_pack, index = 287 new(null), new(new[] { "rq_compressed:true" }), - // git_requests.objects_pack_errors, index = 269 + // git_requests.objects_pack_errors, index = 289 new(new[] { "error_type:timeout" }), new(new[] { "error_type:network" }), new(new[] { "error_type:status_code" }), @@ -314,10 +334,10 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "error_type:status_code_4xx_response", "status_code:404" }), new(new[] { "error_type:status_code_4xx_response", "status_code:408" }), new(new[] { "error_type:status_code_4xx_response", "status_code:429" }), - // git_requests.settings, index = 280 + // git_requests.settings, index = 300 new(null), new(new[] { "rq_compressed:true" }), - // git_requests.settings_errors, index = 282 + // git_requests.settings_errors, index = 302 new(new[] { "error_type:timeout" }), new(new[] { "error_type:network" }), new(new[] { "error_type:status_code" }), @@ -329,7 +349,7 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "error_type:status_code_4xx_response", "status_code:404" }), new(new[] { "error_type:status_code_4xx_response", "status_code:408" }), new(new[] { "error_type:status_code_4xx_response", "status_code:429" }), - // git_requests.settings_response, index = 293 + // git_requests.settings_response, index = 313 new(null), new(new[] { "coverage_enabled" }), new(new[] { "itrskip_enabled" }), @@ -338,10 +358,18 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "coverage_enabled", "early_flake_detection_enabled:true" }), new(new[] { "itrskip_enabled", "early_flake_detection_enabled:true" }), new(new[] { "coverage_enabled", "itrskip_enabled", "early_flake_detection_enabled:true" }), - // itr_skippable_tests.request, index = 301 + new(new[] { "flaky_test_retries_enabled:true" }), + new(new[] { "coverage_enabled", "flaky_test_retries_enabled:true" }), + new(new[] { "itrskip_enabled", "flaky_test_retries_enabled:true" }), + new(new[] { "coverage_enabled", "itrskip_enabled", "flaky_test_retries_enabled:true" }), + new(new[] { "early_flake_detection_enabled:true", "flaky_test_retries_enabled:true" }), + new(new[] { "coverage_enabled", "early_flake_detection_enabled:true", "flaky_test_retries_enabled:true" }), + new(new[] { "itrskip_enabled", "early_flake_detection_enabled:true", "flaky_test_retries_enabled:true" }), + new(new[] { "coverage_enabled", "itrskip_enabled", "early_flake_detection_enabled:true", "flaky_test_retries_enabled:true" }), + // itr_skippable_tests.request, index = 329 new(null), new(new[] { "rq_compressed:true" }), - // itr_skippable_tests.request_errors, index = 303 + // itr_skippable_tests.request_errors, index = 331 new(new[] { "error_type:timeout" }), new(new[] { "error_type:network" }), new(new[] { "error_type:status_code" }), @@ -353,33 +381,33 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() new(new[] { "error_type:status_code_4xx_response", "status_code:404" }), new(new[] { "error_type:status_code_4xx_response", "status_code:408" }), new(new[] { "error_type:status_code_4xx_response", "status_code:429" }), - // itr_skippable_tests.response_tests, index = 314 + // itr_skippable_tests.response_tests, index = 342 new(null), - // itr_skippable_tests.response_suites, index = 315 + // itr_skippable_tests.response_suites, index = 343 new(null), - // itr_skipped, index = 316 + // itr_skipped, index = 344 new(new[] { "event_type:test" }), new(new[] { "event_type:suite" }), new(new[] { "event_type:module" }), new(new[] { "event_type:session" }), - // itr_unskippable, index = 320 + // itr_unskippable, index = 348 new(new[] { "event_type:test" }), new(new[] { "event_type:suite" }), new(new[] { "event_type:module" }), new(new[] { "event_type:session" }), - // itr_forced_run, index = 324 + // itr_forced_run, index = 352 new(new[] { "event_type:test" }), new(new[] { "event_type:suite" }), new(new[] { "event_type:module" }), new(new[] { "event_type:session" }), - // code_coverage.is_empty, index = 328 + // code_coverage.is_empty, index = 356 new(null), - // code_coverage.errors, index = 329 + // code_coverage.errors, index = 357 new(null), - // early_flake_detection.request, index = 330 + // early_flake_detection.request, index = 358 new(null), new(new[] { "rq_compressed:true" }), - // early_flake_detection.request_errors, index = 332 + // early_flake_detection.request_errors, index = 360 new(new[] { "error_type:timeout" }), new(new[] { "error_type:network" }), new(new[] { "error_type:status_code" }), @@ -399,7 +427,7 @@ private static AggregatedMetric[] GetCountCIVisibilityBuffer() /// It is equal to the cardinality of the tag combinations (or 1 if there are no tags) /// private static int[] CountCIVisibilityEntryCounts { get; } - = new int[]{ 40, 80, 10, 10, 4, 1, 4, 22, 2, 9, 72, 2, 11, 2, 11, 2, 11, 8, 2, 11, 1, 1, 4, 4, 4, 1, 1, 2, 11, }; + = new int[]{ 40, 100, 10, 10, 4, 1, 4, 22, 2, 9, 72, 2, 11, 2, 11, 2, 11, 16, 2, 11, 1, 1, 4, 4, 4, 1, 1, 2, 11, }; public void RecordCountCIVisibilityEventCreated(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestFramework tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmark tag2, int increment = 1) { @@ -409,164 +437,164 @@ public void RecordCountCIVisibilityEventCreated(Datadog.Trace.Telemetry.Metrics. public void RecordCountCIVisibilityEventFinished(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestFramework tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmarkAndEarlyFlakeDetectionAndRum tag2, int increment = 1) { - var index = 40 + ((int)tag1 * 16) + (int)tag2; + var index = 40 + ((int)tag1 * 20) + (int)tag2; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityCodeCoverageStarted(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestFramework tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityCoverageLibrary tag2, int increment = 1) { - var index = 120 + ((int)tag1 * 2) + (int)tag2; + var index = 140 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityCodeCoverageFinished(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestFramework tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityCoverageLibrary tag2, int increment = 1) { - var index = 130 + ((int)tag1 * 2) + (int)tag2; + var index = 150 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityManualApiEvent(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventType tag, int increment = 1) { - var index = 140 + (int)tag; + var index = 160 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityEventsEnqueueForSerialization(int increment = 1) { - Interlocked.Add(ref _buffer.CountCIVisibility[144], increment); + Interlocked.Add(ref _buffer.CountCIVisibility[164], increment); } public void RecordCountCIVisibilityEndpointPayloadRequests(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityEndpointAndCompression tag, int increment = 1) { - var index = 145 + (int)tag; + var index = 165 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityEndpointPayloadRequestsErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityEndpoints tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag2, int increment = 1) { - var index = 149 + ((int)tag1 * 11) + (int)tag2; + var index = 169 + ((int)tag1 * 11) + (int)tag2; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityEndpointPayloadDropped(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityEndpoints tag, int increment = 1) { - var index = 171 + (int)tag; + var index = 191 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitCommand(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityCommands tag, int increment = 1) { - var index = 173 + (int)tag; + var index = 193 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitCommandErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityCommands tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityExitCodes tag2, int increment = 1) { - var index = 182 + ((int)tag1 * 8) + (int)tag2; + var index = 202 + ((int)tag1 * 8) + (int)tag2; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsSearchCommits(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityRequestCompressed tag, int increment = 1) { - var index = 254 + (int)tag; + var index = 274 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsSearchCommitsErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag, int increment = 1) { - var index = 256 + (int)tag; + var index = 276 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsObjectsPack(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityRequestCompressed tag, int increment = 1) { - var index = 267 + (int)tag; + var index = 287 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsObjectsPackErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag, int increment = 1) { - var index = 269 + (int)tag; + var index = 289 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsSettings(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityRequestCompressed tag, int increment = 1) { - var index = 280 + (int)tag; + var index = 300 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsSettingsErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag, int increment = 1) { - var index = 282 + (int)tag; + var index = 302 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityGitRequestsSettingsResponse(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityITRSettingsResponse tag, int increment = 1) { - var index = 293 + (int)tag; + var index = 313 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityITRSkippableTestsRequest(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityRequestCompressed tag, int increment = 1) { - var index = 301 + (int)tag; + var index = 329 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityITRSkippableTestsRequestErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag, int increment = 1) { - var index = 303 + (int)tag; + var index = 331 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityITRSkippableTestsResponseTests(int increment = 1) { - Interlocked.Add(ref _buffer.CountCIVisibility[314], increment); + Interlocked.Add(ref _buffer.CountCIVisibility[342], increment); } public void RecordCountCIVisibilityITRSkippableTestsResponseSuites(int increment = 1) { - Interlocked.Add(ref _buffer.CountCIVisibility[315], increment); + Interlocked.Add(ref _buffer.CountCIVisibility[343], increment); } public void RecordCountCIVisibilityITRSkipped(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventType tag, int increment = 1) { - var index = 316 + (int)tag; + var index = 344 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityITRUnskippable(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventType tag, int increment = 1) { - var index = 320 + (int)tag; + var index = 348 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityITRForcedRun(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityTestingEventType tag, int increment = 1) { - var index = 324 + (int)tag; + var index = 352 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityCodeCoverageIsEmpty(int increment = 1) { - Interlocked.Add(ref _buffer.CountCIVisibility[328], increment); + Interlocked.Add(ref _buffer.CountCIVisibility[356], increment); } public void RecordCountCIVisibilityCodeCoverageErrors(int increment = 1) { - Interlocked.Add(ref _buffer.CountCIVisibility[329], increment); + Interlocked.Add(ref _buffer.CountCIVisibility[357], increment); } public void RecordCountCIVisibilityEarlyFlakeDetectionRequest(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityRequestCompressed tag, int increment = 1) { - var index = 330 + (int)tag; + var index = 358 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } public void RecordCountCIVisibilityEarlyFlakeDetectionRequestErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.CIVisibilityErrorType tag, int increment = 1) { - var index = 332 + (int)tag; + var index = 360 + (int)tag; Interlocked.Add(ref _buffer.CountCIVisibility[index], increment); } } \ No newline at end of file diff --git a/tracer/src/Datadog.Trace/Telemetry/Metrics/MetricTags.cs b/tracer/src/Datadog.Trace/Telemetry/Metrics/MetricTags.cs index 0139c2b254ee..551d097f279a 100644 --- a/tracer/src/Datadog.Trace/Telemetry/Metrics/MetricTags.cs +++ b/tracer/src/Datadog.Trace/Telemetry/Metrics/MetricTags.cs @@ -389,10 +389,17 @@ public enum CIVisibilityTestingEventTypeWithCodeOwnerAndSupportedCiAndBenchmarkA [Description("event_type:test;is_benchmark")] Test_IsBenchmark, [Description("event_type:suite")] Suite, [Description("event_type:module")] Module, - [Description("event_type:session")] Session_NoCodeOwner_IsSupportedCi, - [Description("event_type:session;is_unsupported_ci")] Session_NoCodeOwner_UnsupportedCi, - [Description("event_type:session;has_codeowner;is_unsupported_ci")] Session_HasCodeOwner_UnsupportedCi, - [Description("event_type:session;has_codeowner")] Session_HasCodeOwner_IsSupportedCi, + // ... + [Description("event_type:session")] Session_NoCodeOwner_IsSupportedCi_WithoutAgentlessLog, + [Description("event_type:session;is_unsupported_ci")] Session_NoCodeOwner_UnsupportedCi_WithoutAgentlessLog, + [Description("event_type:session;has_codeowner;is_unsupported_ci")] Session_HasCodeOwner_UnsupportedCi_WithoutAgentlessLog, + [Description("event_type:session;has_codeowner")] Session_HasCodeOwner_IsSupportedCi_WithoutAgentlessLog, + // ... + [Description("event_type:session;agentless_log_submission_enabled")] Session_NoCodeOwner_IsSupportedCi_WithAgentlessLog, + [Description("event_type:session;is_unsupported_ci;agentless_log_submission_enabled")] Session_NoCodeOwner_UnsupportedCi_WithAgentlessLog, + [Description("event_type:session;has_codeowner;is_unsupported_ci;agentless_log_submission_enabled")] Session_HasCodeOwner_UnsupportedCi_WithAgentlessLog, + [Description("event_type:session;has_codeowner;agentless_log_submission_enabled")] Session_HasCodeOwner_IsSupportedCi_WithAgentlessLog, + // ... [Description("event_type:test;is_new:true")] Test_EFDTestIsNew, [Description("event_type:test;is_new:true;early_flake_detection_abort_reason:slow")] Test_EFDTestIsNew_EFDTestAbortSlow, [Description("event_type:test;browser_driver:selenium")] Test_BrowserDriverSelenium, @@ -473,14 +480,23 @@ public enum CIVisibilityExitCodes public enum CIVisibilityITRSettingsResponse { - [Description("")] CoverageDisabled_ItrSkipDisabled, - [Description("coverage_enabled")] CoverageEnabled_ItrSkipDisabled, - [Description("itrskip_enabled")] CoverageDisabled_ItrSkipEnabled, - [Description("coverage_enabled;itrskip_enabled")] CoverageEnabled_ItrSkipEnabled, - [Description("early_flake_detection_enabled:true")] CoverageDisabled_ItrSkipDisabled_EFDEnabled, - [Description("coverage_enabled;early_flake_detection_enabled:true")] CoverageEnabled_ItrSkipDisabled_EFDEnabled, - [Description("itrskip_enabled;early_flake_detection_enabled:true")] CoverageDisabled_ItrSkipEnabled_EFDEnabled, - [Description("coverage_enabled;itrskip_enabled;early_flake_detection_enabled:true")] CoverageEnabled_ItrSkipEnabled_EFDEnabled, + [Description("")] CoverageDisabled_ItrSkipDisabled_AtrDisabled, + [Description("coverage_enabled")] CoverageEnabled_ItrSkipDisabled_AtrDisabled, + [Description("itrskip_enabled")] CoverageDisabled_ItrSkipEnabled_AtrDisabled, + [Description("coverage_enabled;itrskip_enabled")] CoverageEnabled_ItrSkipEnabled_AtrDisabled, + [Description("early_flake_detection_enabled:true")] CoverageDisabled_ItrSkipDisabled_EFDEnabled_AtrDisabled, + [Description("coverage_enabled;early_flake_detection_enabled:true")] CoverageEnabled_ItrSkipDisabled_EFDEnabled_AtrDisabled, + [Description("itrskip_enabled;early_flake_detection_enabled:true")] CoverageDisabled_ItrSkipEnabled_EFDEnabled_AtrDisabled, + [Description("coverage_enabled;itrskip_enabled;early_flake_detection_enabled:true")] CoverageEnabled_ItrSkipEnabled_EFDEnabled_AtrDisabled, + // ... + [Description("flaky_test_retries_enabled:true")] CoverageDisabled_ItrSkipDisabled_AtrEnabled, + [Description("coverage_enabled;flaky_test_retries_enabled:true")] CoverageEnabled_ItrSkipDisabled_AtrEnabled, + [Description("itrskip_enabled;flaky_test_retries_enabled:true")] CoverageDisabled_ItrSkipEnabled_AtrEnabled, + [Description("coverage_enabled;itrskip_enabled;flaky_test_retries_enabled:true")] CoverageEnabled_ItrSkipEnabled_AtrEnabled, + [Description("early_flake_detection_enabled:true;flaky_test_retries_enabled:true")] CoverageDisabled_ItrSkipDisabled_EFDEnabled_AtrEnabled, + [Description("coverage_enabled;early_flake_detection_enabled:true;flaky_test_retries_enabled:true")] CoverageEnabled_ItrSkipDisabled_EFDEnabled_AtrEnabled, + [Description("itrskip_enabled;early_flake_detection_enabled:true;flaky_test_retries_enabled:true")] CoverageDisabled_ItrSkipEnabled_EFDEnabled_AtrEnabled, + [Description("coverage_enabled;itrskip_enabled;early_flake_detection_enabled:true;flaky_test_retries_enabled:true")] CoverageEnabled_ItrSkipEnabled_EFDEnabled_AtrEnabled, } public enum CIVisibilityRequestCompressed From 7f09c5000afd7bb9b0b0e55bb1fb2a1e91304606 Mon Sep 17 00:00:00 2001 From: Tony Redondo Date: Mon, 16 Dec 2024 15:09:12 +0100 Subject: [PATCH 2/2] Fix test --- .../test/Datadog.Trace.Tests/Telemetry/Metrics/MetricTests.cs | 4 ++-- .../Datadog.Trace.Tests/Telemetry/Metrics/common_metrics.json | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tracer/test/Datadog.Trace.Tests/Telemetry/Metrics/MetricTests.cs b/tracer/test/Datadog.Trace.Tests/Telemetry/Metrics/MetricTests.cs index 15bb836107a1..2a2968b846a0 100644 --- a/tracer/test/Datadog.Trace.Tests/Telemetry/Metrics/MetricTests.cs +++ b/tracer/test/Datadog.Trace.Tests/Telemetry/Metrics/MetricTests.cs @@ -35,8 +35,8 @@ public class MetricTests private static readonly Dictionary OptionalTagsByMetricName = new() { { "event_created", new[] { "has_codeowner", "is_unsupported_ci", "is_benchmark" } }, - { "event_finished", new[] { "has_codeowner", "is_unsupported_ci", "is_benchmark", "is_new", "early_flake_detection_abort_reason", "browser_driver", "is_rum" } }, - { "git_requests.settings_response", new[] { "coverage_enabled", "itrskip_enabled", "early_flake_detection_enabled" } }, + { "event_finished", new[] { "has_codeowner", "is_unsupported_ci", "is_benchmark", "is_new", "early_flake_detection_abort_reason", "browser_driver", "is_rum", "agentless_log_submission_enabled" } }, + { "git_requests.settings_response", new[] { "coverage_enabled", "itrskip_enabled", "early_flake_detection_enabled", "flaky_test_retries_enabled" } }, { "endpoint_payload.requests_errors", ["status_code"] }, { "git_requests.search_commits_errors", ["status_code"] }, { "git_requests.objects_pack_errors", ["status_code"] }, diff --git a/tracer/test/Datadog.Trace.Tests/Telemetry/Metrics/common_metrics.json b/tracer/test/Datadog.Trace.Tests/Telemetry/Metrics/common_metrics.json index c058438eca59..bc846be12b44 100644 --- a/tracer/test/Datadog.Trace.Tests/Telemetry/Metrics/common_metrics.json +++ b/tracer/test/Datadog.Trace.Tests/Telemetry/Metrics/common_metrics.json @@ -904,7 +904,8 @@ "test_session": { "tags": [ "provider", - "auto_injected" + "auto_injected", + "agentless_log_submission_enabled", ], "metric_type": "count", "data_type": "events", @@ -1195,6 +1196,7 @@ "tags": [ "coverage_enabled", "itrskip_enabled", + "flaky_test_retries_enabled", "early_flake_detection_enabled" ], "metric_type": "count",