From f2c9a3465f29813c3efa732a46f0f108f6dca0ad Mon Sep 17 00:00:00 2001 From: Mohammad Islam Date: Fri, 4 Sep 2026 15:26:09 -0400 Subject: [PATCH 1/8] feat(telemetry): report Quartz and Azure Service Bus spans --- .../Handlers/ActivityHandlerCommon.cs | 16 +- .../AzureServiceBusActivityHandler.cs | 3 +- .../Handlers/DefaultActivityHandler.cs | 3 +- .../Handlers/QuartzActivityHandler.cs | 2 +- .../Configuration/IntegrationId.cs | 1 + ...ntegrationIdExtensions_EnumExtensions.g.cs | 5 +- .../IntegrationNameToKeys.g.cs | 6 + ...MetricsTelemetryCollector_CountShared.g.cs | 8 +- .../MetricsTelemetryCollector_Count.g.cs | 242 +++++++++--------- ...MetricsTelemetryCollector_CountShared.g.cs | 8 +- .../Metrics/IntegrationIdExtensions.cs | 1 + .../Telemetry/Metrics/MetricTags.cs | 1 + .../Azure/AzureServiceBusTests.cs | 2 +- .../QuartzTests.cs | 7 +- 14 files changed, 167 insertions(+), 138 deletions(-) diff --git a/tracer/src/Datadog.Trace/Activity/Handlers/ActivityHandlerCommon.cs b/tracer/src/Datadog.Trace/Activity/Handlers/ActivityHandlerCommon.cs index 8caa5e140796..5e65898d92cc 100644 --- a/tracer/src/Datadog.Trace/Activity/Handlers/ActivityHandlerCommon.cs +++ b/tracer/src/Datadog.Trace/Activity/Handlers/ActivityHandlerCommon.cs @@ -24,7 +24,6 @@ internal sealed class ActivityHandlerCommon { private static readonly IDatadogLogger Log = DatadogLogging.GetLoggerFor(typeof(ActivityHandlerCommon)); internal static readonly ConcurrentDictionary ActivityMappingById = new(); - private static readonly IntegrationId IntegrationId = IntegrationId.OpenTelemetry; // Periodic sweep that handles two reliability cases that the hot-path Stop callback // cannot: 1. Activities the customer abandoned without calling Stop (their WeakReference @@ -48,6 +47,7 @@ internal sealed class ActivityHandlerCommon /// /// Handles when a new Activity is started to map it to a new /. /// + /// The integration that generated the Activity. /// The name of the Activity source /// The Activity object /// @@ -56,10 +56,10 @@ internal sealed class ActivityHandlerCommon /// /// The mapping of Activity to its . /// The . - public static void ActivityStarted(string sourceName, T activity, OpenTelemetryTags? tags, out ActivityMapping activityMapping) + public static void ActivityStarted(IntegrationId integrationId, string sourceName, T activity, OpenTelemetryTags? tags, out ActivityMapping activityMapping) where T : IActivity { - Tracer.Instance.TracerManager.Telemetry.IntegrationRunning(IntegrationId); + Tracer.Instance.TracerManager.Telemetry.IntegrationRunning(integrationId); // Propagate Trace and Parent Span ids SpanContext? parent = null; @@ -221,10 +221,10 @@ public static void ActivityStarted(string sourceName, T activity, OpenTelemet // Avoid closure allocation if we can activityMapping = ActivityMappingById.GetOrAdd( activityKey.Value, - static (_, details) => new(new(details.activity.Instance!), CreateScopeFromActivity(details.activity, details.tags, details.parent, details.traceId, details.spanId, details.rawTraceId, details.rawSpanId)), - (activity, tags, parent, traceId, spanId, rawTraceId, rawSpanId)); + static (_, details) => new(new(details.activity.Instance!), CreateScopeFromActivity(details.integrationId, details.activity, details.tags, details.parent, details.traceId, details.spanId, details.rawTraceId, details.rawSpanId)), + (integrationId, activity, tags, parent, traceId, spanId, rawTraceId, rawSpanId)); #else - activityMapping = ActivityMappingById.GetOrAdd(activityKey.Value, _ => new(new(activity.Instance!), CreateScopeFromActivity(activity, tags, parent, traceId, spanId, rawTraceId, rawSpanId))); + activityMapping = ActivityMappingById.GetOrAdd(activityKey.Value, _ => new(new(activity.Instance!), CreateScopeFromActivity(integrationId, activity, tags, parent, traceId, spanId, rawTraceId, rawSpanId))); #endif } catch (Exception ex) @@ -233,7 +233,7 @@ public static void ActivityStarted(string sourceName, T activity, OpenTelemet activityMapping = default; } - static Scope CreateScopeFromActivity(T activity, OpenTelemetryTags? tags, SpanContext? parent, TraceId traceId, ulong spanId, string? rawTraceId, string? rawSpanId) + static Scope CreateScopeFromActivity(IntegrationId integrationId, T activity, OpenTelemetryTags? tags, SpanContext? parent, TraceId traceId, ulong spanId, string? rawTraceId, string? rawSpanId) { var span = Tracer.Instance.StartSpan( activity.OperationName, @@ -245,7 +245,7 @@ static Scope CreateScopeFromActivity(T activity, OpenTelemetryTags? tags, SpanCo rawTraceId: rawTraceId, rawSpanId: rawSpanId); - Tracer.Instance.TracerManager.Telemetry.IntegrationGeneratedSpan(IntegrationId); + Tracer.Instance.TracerManager.Telemetry.IntegrationGeneratedSpan(integrationId); return Tracer.Instance.ActivateSpan(span, finishOnClose: false); } } diff --git a/tracer/src/Datadog.Trace/Activity/Handlers/AzureServiceBusActivityHandler.cs b/tracer/src/Datadog.Trace/Activity/Handlers/AzureServiceBusActivityHandler.cs index 698d06b93c13..695c469049fc 100644 --- a/tracer/src/Datadog.Trace/Activity/Handlers/AzureServiceBusActivityHandler.cs +++ b/tracer/src/Datadog.Trace/Activity/Handlers/AzureServiceBusActivityHandler.cs @@ -6,6 +6,7 @@ #nullable enable using Datadog.Trace.Activity.DuckTypes; +using Datadog.Trace.Configuration; using Datadog.Trace.Tagging; namespace Datadog.Trace.Activity.Handlers @@ -19,7 +20,7 @@ public void ActivityStarted(string sourceName, T activity) where T : IActivity { var tags = Tracer.Instance.CurrentTraceSettings.Schema.Client.CreateAzureServiceBusTags(); - ActivityHandlerCommon.ActivityStarted(sourceName, activity, tags: tags, out var activityMapping); + ActivityHandlerCommon.ActivityStarted(IntegrationId.AzureServiceBus, sourceName, activity, tags: tags, out var activityMapping); } public void ActivityStopped(string sourceName, T activity) diff --git a/tracer/src/Datadog.Trace/Activity/Handlers/DefaultActivityHandler.cs b/tracer/src/Datadog.Trace/Activity/Handlers/DefaultActivityHandler.cs index a6c69e0b881e..d658b8030025 100644 --- a/tracer/src/Datadog.Trace/Activity/Handlers/DefaultActivityHandler.cs +++ b/tracer/src/Datadog.Trace/Activity/Handlers/DefaultActivityHandler.cs @@ -6,6 +6,7 @@ #nullable enable using Datadog.Trace.Activity.DuckTypes; +using Datadog.Trace.Configuration; using Datadog.Trace.Tagging; namespace Datadog.Trace.Activity.Handlers @@ -22,7 +23,7 @@ public bool ShouldListenTo(string sourceName, string? version) public void ActivityStarted(string sourceName, T activity) where T : IActivity - => ActivityHandlerCommon.ActivityStarted(sourceName, activity, tags: null, out _); + => ActivityHandlerCommon.ActivityStarted(IntegrationId.OpenTelemetry, sourceName, activity, tags: null, out _); public void ActivityStopped(string sourceName, T activity) where T : IActivity diff --git a/tracer/src/Datadog.Trace/Activity/Handlers/QuartzActivityHandler.cs b/tracer/src/Datadog.Trace/Activity/Handlers/QuartzActivityHandler.cs index ee5974753a67..b974ff866c45 100644 --- a/tracer/src/Datadog.Trace/Activity/Handlers/QuartzActivityHandler.cs +++ b/tracer/src/Datadog.Trace/Activity/Handlers/QuartzActivityHandler.cs @@ -38,7 +38,7 @@ public bool ShouldListenTo(string sourceName, string? version) public void ActivityStarted(string sourceName, T activity) where T : IActivity { - ActivityHandlerCommon.ActivityStarted(sourceName, activity, tags: new OpenTelemetryTags(), out var activityMapping); + ActivityHandlerCommon.ActivityStarted(IntegrationId.Quartz, sourceName, activity, tags: new OpenTelemetryTags(), out var activityMapping); } public void ActivityStopped(string sourceName, T activity) diff --git a/tracer/src/Datadog.Trace/Configuration/IntegrationId.cs b/tracer/src/Datadog.Trace/Configuration/IntegrationId.cs index 787eb373cf17..c148a53a6604 100644 --- a/tracer/src/Datadog.Trace/Configuration/IntegrationId.cs +++ b/tracer/src/Datadog.Trace/Configuration/IntegrationId.cs @@ -91,6 +91,7 @@ internal enum IntegrationId DatadogTraceVersionConflict, Hangfire, OpenFeature, + Quartz, ServerlessCompat } } diff --git a/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationIdExtensions_EnumExtensions.g.cs b/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationIdExtensions_EnumExtensions.g.cs index cfc3e86ece7b..1e7a3ce2ce2c 100644 --- a/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationIdExtensions_EnumExtensions.g.cs +++ b/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationIdExtensions_EnumExtensions.g.cs @@ -17,7 +17,7 @@ internal static partial class IntegrationIdExtensions /// The number of members in the enum. /// This is a non-distinct count of defined names. /// - public const int Length = 80; + public const int Length = 81; /// /// Returns the string representation of the value. @@ -109,6 +109,7 @@ public static string ToStringFast(this Datadog.Trace.Configuration.IntegrationId Datadog.Trace.Configuration.IntegrationId.DatadogTraceVersionConflict => nameof(Datadog.Trace.Configuration.IntegrationId.DatadogTraceVersionConflict), Datadog.Trace.Configuration.IntegrationId.Hangfire => nameof(Datadog.Trace.Configuration.IntegrationId.Hangfire), Datadog.Trace.Configuration.IntegrationId.OpenFeature => nameof(Datadog.Trace.Configuration.IntegrationId.OpenFeature), + Datadog.Trace.Configuration.IntegrationId.Quartz => nameof(Datadog.Trace.Configuration.IntegrationId.Quartz), Datadog.Trace.Configuration.IntegrationId.ServerlessCompat => nameof(Datadog.Trace.Configuration.IntegrationId.ServerlessCompat), _ => value.ToString(), }; @@ -202,6 +203,7 @@ public static Datadog.Trace.Configuration.IntegrationId[] GetValues() Datadog.Trace.Configuration.IntegrationId.DatadogTraceVersionConflict, Datadog.Trace.Configuration.IntegrationId.Hangfire, Datadog.Trace.Configuration.IntegrationId.OpenFeature, + Datadog.Trace.Configuration.IntegrationId.Quartz, Datadog.Trace.Configuration.IntegrationId.ServerlessCompat, }; @@ -295,6 +297,7 @@ public static string[] GetNames() nameof(Datadog.Trace.Configuration.IntegrationId.DatadogTraceVersionConflict), nameof(Datadog.Trace.Configuration.IntegrationId.Hangfire), nameof(Datadog.Trace.Configuration.IntegrationId.OpenFeature), + nameof(Datadog.Trace.Configuration.IntegrationId.Quartz), nameof(Datadog.Trace.Configuration.IntegrationId.ServerlessCompat), }; } \ No newline at end of file diff --git a/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationNameToKeys.g.cs b/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationNameToKeys.g.cs index 1082a62da2ba..d5375990de0a 100644 --- a/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationNameToKeys.g.cs +++ b/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationNameToKeys.g.cs @@ -259,6 +259,9 @@ public static string[] GetAllIntegrationEnabledKeys() => "DD_TRACE_OPENFEATURE_ENABLED", "DD_TRACE_OpenFeature_ENABLED", "DD_OpenFeature_ENABLED", "DD_TRACE_OPENFEATURE_ANALYTICS_ENABLED", "DD_TRACE_OpenFeature_ANALYTICS_ENABLED", "DD_OpenFeature_ANALYTICS_ENABLED", "DD_TRACE_OPENFEATURE_ANALYTICS_SAMPLE_RATE", "DD_TRACE_OpenFeature_ANALYTICS_SAMPLE_RATE", "DD_OpenFeature_ANALYTICS_SAMPLE_RATE", + "DD_TRACE_QUARTZ_ENABLED", "DD_TRACE_Quartz_ENABLED", "DD_Quartz_ENABLED", + "DD_TRACE_QUARTZ_ANALYTICS_ENABLED", "DD_TRACE_Quartz_ANALYTICS_ENABLED", "DD_Quartz_ANALYTICS_ENABLED", + "DD_TRACE_QUARTZ_ANALYTICS_SAMPLE_RATE", "DD_TRACE_Quartz_ANALYTICS_SAMPLE_RATE", "DD_Quartz_ANALYTICS_SAMPLE_RATE", "DD_TRACE_SERVERLESSCOMPAT_ENABLED", "DD_TRACE_ServerlessCompat_ENABLED", "DD_ServerlessCompat_ENABLED", "DD_TRACE_SERVERLESSCOMPAT_ANALYTICS_ENABLED", "DD_TRACE_ServerlessCompat_ANALYTICS_ENABLED", "DD_ServerlessCompat_ANALYTICS_ENABLED", "DD_TRACE_SERVERLESSCOMPAT_ANALYTICS_SAMPLE_RATE", "DD_TRACE_ServerlessCompat_ANALYTICS_SAMPLE_RATE", "DD_ServerlessCompat_ANALYTICS_SAMPLE_RATE", @@ -351,6 +354,7 @@ public static System.Collections.Generic.KeyValuePair GetInteg "DatadogTraceVersionConflict" => new("DD_TRACE_DATADOGTRACEVERSIONCONFLICT_ENABLED", ["DD_TRACE_DatadogTraceVersionConflict_ENABLED", "DD_DatadogTraceVersionConflict_ENABLED"]), "Hangfire" => new("DD_TRACE_HANGFIRE_ENABLED", ["DD_TRACE_Hangfire_ENABLED", "DD_Hangfire_ENABLED"]), "OpenFeature" => new("DD_TRACE_OPENFEATURE_ENABLED", ["DD_TRACE_OpenFeature_ENABLED", "DD_OpenFeature_ENABLED"]), + "Quartz" => new("DD_TRACE_QUARTZ_ENABLED", ["DD_TRACE_Quartz_ENABLED", "DD_Quartz_ENABLED"]), "ServerlessCompat" => new("DD_TRACE_SERVERLESSCOMPAT_ENABLED", ["DD_TRACE_ServerlessCompat_ENABLED", "DD_ServerlessCompat_ENABLED"]), _ => GetIntegrationEnabledKeysFallback(integrationName) // we should never get here }; @@ -443,6 +447,7 @@ public static System.Collections.Generic.KeyValuePair GetInteg "DatadogTraceVersionConflict" => new("DD_TRACE_DATADOGTRACEVERSIONCONFLICT_ANALYTICS_ENABLED", ["DD_TRACE_DatadogTraceVersionConflict_ANALYTICS_ENABLED", "DD_DatadogTraceVersionConflict_ANALYTICS_ENABLED"]), "Hangfire" => new("DD_TRACE_HANGFIRE_ANALYTICS_ENABLED", ["DD_TRACE_Hangfire_ANALYTICS_ENABLED", "DD_Hangfire_ANALYTICS_ENABLED"]), "OpenFeature" => new("DD_TRACE_OPENFEATURE_ANALYTICS_ENABLED", ["DD_TRACE_OpenFeature_ANALYTICS_ENABLED", "DD_OpenFeature_ANALYTICS_ENABLED"]), + "Quartz" => new("DD_TRACE_QUARTZ_ANALYTICS_ENABLED", ["DD_TRACE_Quartz_ANALYTICS_ENABLED", "DD_Quartz_ANALYTICS_ENABLED"]), "ServerlessCompat" => new("DD_TRACE_SERVERLESSCOMPAT_ANALYTICS_ENABLED", ["DD_TRACE_ServerlessCompat_ANALYTICS_ENABLED", "DD_ServerlessCompat_ANALYTICS_ENABLED"]), _ => GetIntegrationAnalyticsEnabledKeysFallback(integrationName) // we should never get here }; @@ -535,6 +540,7 @@ public static System.Collections.Generic.KeyValuePair GetInteg "DatadogTraceVersionConflict" => new("DD_TRACE_DATADOGTRACEVERSIONCONFLICT_ANALYTICS_SAMPLE_RATE", ["DD_TRACE_DatadogTraceVersionConflict_ANALYTICS_SAMPLE_RATE", "DD_DatadogTraceVersionConflict_ANALYTICS_SAMPLE_RATE"]), "Hangfire" => new("DD_TRACE_HANGFIRE_ANALYTICS_SAMPLE_RATE", ["DD_TRACE_Hangfire_ANALYTICS_SAMPLE_RATE", "DD_Hangfire_ANALYTICS_SAMPLE_RATE"]), "OpenFeature" => new("DD_TRACE_OPENFEATURE_ANALYTICS_SAMPLE_RATE", ["DD_TRACE_OpenFeature_ANALYTICS_SAMPLE_RATE", "DD_OpenFeature_ANALYTICS_SAMPLE_RATE"]), + "Quartz" => new("DD_TRACE_QUARTZ_ANALYTICS_SAMPLE_RATE", ["DD_TRACE_Quartz_ANALYTICS_SAMPLE_RATE", "DD_Quartz_ANALYTICS_SAMPLE_RATE"]), "ServerlessCompat" => new("DD_TRACE_SERVERLESSCOMPAT_ANALYTICS_SAMPLE_RATE", ["DD_TRACE_ServerlessCompat_ANALYTICS_SAMPLE_RATE", "DD_ServerlessCompat_ANALYTICS_SAMPLE_RATE"]), _ => GetIntegrationAnalyticsSampleRateKeysFallback(integrationName) // we should never get here }; diff --git a/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountShared.g.cs b/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountShared.g.cs index 074a939c1ce9..3eee24bd10a9 100644 --- a/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountShared.g.cs +++ b/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountShared.g.cs @@ -11,7 +11,7 @@ namespace Datadog.Trace.Telemetry; internal sealed partial class CiVisibilityMetricsTelemetryCollector { - private const int CountSharedLength = 340; + private const int CountSharedLength = 344; /// /// Creates the buffer for the values. @@ -356,6 +356,10 @@ private static AggregatedMetric[] GetCountSharedBuffer() new(new[] { "integration_name:hangfire", "error_type:invoker" }), new(new[] { "integration_name:hangfire", "error_type:execution" }), new(new[] { "integration_name:hangfire", "error_type:missing_member" }), + new(new[] { "integration_name:quartz", "error_type:duck_typing" }), + new(new[] { "integration_name:quartz", "error_type:invoker" }), + new(new[] { "integration_name:quartz", "error_type:execution" }), + new(new[] { "integration_name:quartz", "error_type:missing_member" }), new(new[] { "integration_name:serverlesscompat", "error_type:duck_typing" }), new(new[] { "integration_name:serverlesscompat", "error_type:invoker" }), new(new[] { "integration_name:serverlesscompat", "error_type:execution" }), @@ -368,7 +372,7 @@ private static AggregatedMetric[] GetCountSharedBuffer() /// It is equal to the cardinality of the tag combinations (or 1 if there are no tags) /// private static int[] CountSharedEntryCounts { get; } - = new int[]{ 340, }; + = new int[]{ 344, }; public void RecordCountSharedIntegrationsError(Datadog.Trace.Telemetry.Metrics.MetricTags.IntegrationName tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.InstrumentationError tag2, int increment = 1) { diff --git a/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_Count.g.cs b/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_Count.g.cs index ea54deed1d51..012f230b22c9 100644 --- a/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_Count.g.cs +++ b/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_Count.g.cs @@ -11,7 +11,7 @@ namespace Datadog.Trace.Telemetry; internal sealed partial class MetricsTelemetryCollector { - private const int CountLength = 770; + private const int CountLength = 772; /// /// Creates the buffer for the values. @@ -109,14 +109,15 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "integration_name:emailhtmlinjection" }), new(new[] { "integration_name:protobuf" }), new(new[] { "integration_name:hangfire" }), + new(new[] { "integration_name:quartz" }), new(new[] { "integration_name:serverlesscompat" }), - // spans_finished, index = 89 + // spans_finished, index = 90 new(null), - // spans_enqueued_for_serialization, index = 90 + // spans_enqueued_for_serialization, index = 91 new(new[] { "reason:p0_keep" }), new(new[] { "reason:single_span_sampling" }), new(new[] { "reason:default" }), - // spans_dropped, index = 93 + // spans_dropped, index = 94 new(new[] { "reason:p0_drop" }), new(new[] { "reason:overfull_buffer" }), new(new[] { "reason:trace_too_large" }), @@ -124,13 +125,13 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "reason:api_error" }), new(new[] { "reason:trace_filter" }), new(new[] { "reason:buffer_locked" }), - // trace_segments_created, index = 100 + // trace_segments_created, index = 101 new(new[] { "new_continued:new" }), new(new[] { "new_continued:continued" }), - // trace_chunks_enqueued_for_serialization, index = 102 + // trace_chunks_enqueued_for_serialization, index = 103 new(new[] { "reason:p0_keep" }), new(new[] { "reason:default" }), - // trace_chunks_dropped, index = 104 + // trace_chunks_dropped, index = 105 new(new[] { "reason:p0_drop" }), new(new[] { "reason:overfull_buffer" }), new(new[] { "reason:trace_too_large" }), @@ -138,13 +139,13 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "reason:api_error" }), new(new[] { "reason:trace_filter" }), new(new[] { "reason:buffer_locked" }), - // trace_chunks_sent, index = 111 + // trace_chunks_sent, index = 112 new(null), - // trace_segments_closed, index = 112 + // trace_segments_closed, index = 113 new(null), - // trace_api.requests, index = 113 + // trace_api.requests, index = 114 new(null), - // trace_api.responses, index = 114 + // trace_api.responses, index = 115 new(new[] { "status_code:200" }), new(new[] { "status_code:201" }), new(new[] { "status_code:202" }), @@ -167,35 +168,35 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "status_code:503" }), new(new[] { "status_code:504" }), new(new[] { "status_code:5xx" }), - // trace_api.errors, index = 136 + // trace_api.errors, index = 137 new(new[] { "type:timeout" }), new(new[] { "type:network" }), new(new[] { "type:status_code" }), - // trace_partial_flush.count, index = 139 + // trace_partial_flush.count, index = 140 new(new[] { "reason:large_trace" }), new(new[] { "reason:single_span_ingestion" }), - // context_header_style.injected, index = 141 + // context_header_style.injected, index = 142 new(new[] { "header_style:tracecontext" }), new(new[] { "header_style:datadog" }), new(new[] { "header_style:b3multi" }), new(new[] { "header_style:b3single" }), new(new[] { "header_style:baggage" }), - // context_header_style.extracted, index = 146 + // context_header_style.extracted, index = 147 new(new[] { "header_style:tracecontext" }), new(new[] { "header_style:datadog" }), new(new[] { "header_style:b3multi" }), new(new[] { "header_style:b3single" }), new(new[] { "header_style:baggage" }), - // context_header.truncated, index = 151 + // context_header.truncated, index = 152 new(new[] { "truncation_reason:baggage_item_count_exceeded" }), new(new[] { "truncation_reason:baggage_byte_count_exceeded" }), new(new[] { "truncation_reason:baggage_extract_item_exceeded" }), new(new[] { "truncation_reason:baggage_extract_byte_exceeded" }), - // context_header_style.malformed, index = 155 + // context_header_style.malformed, index = 156 new(new[] { "header_style:baggage" }), - // stats_api.requests, index = 156 + // stats_api.requests, index = 157 new(null), - // stats_api.responses, index = 157 + // stats_api.responses, index = 158 new(new[] { "status_code:200" }), new(new[] { "status_code:201" }), new(new[] { "status_code:202" }), @@ -218,11 +219,11 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "status_code:503" }), new(new[] { "status_code:504" }), new(new[] { "status_code:5xx" }), - // stats_api.errors, index = 179 + // stats_api.errors, index = 180 new(new[] { "type:timeout" }), new(new[] { "type:network" }), new(new[] { "type:status_code" }), - // stats_collapsed_spans, index = 182 + // stats_collapsed_spans, index = 183 new(null), new(new[] { "oversized:additional_metric_tags" }), new(new[] { "collapsed:whole_key" }), @@ -257,7 +258,7 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "collapsed:http_endpoint", "collapsed:peer_tags", "collapsed:additional_metric_tags", "oversized:additional_metric_tags" }), new(new[] { "collapsed:resource", "collapsed:http_endpoint", "collapsed:peer_tags", "collapsed:additional_metric_tags" }), new(new[] { "collapsed:resource", "collapsed:http_endpoint", "collapsed:peer_tags", "collapsed:additional_metric_tags", "oversized:additional_metric_tags" }), - // otel.env.hiding, index = 216 + // otel.env.hiding, index = 217 new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_log_level" }), new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_metrics_exporter" }), new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_propagators" }), @@ -348,7 +349,7 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "config_datadog:unknown", "config_opentelemetry:otel_traces_sampler" }), new(new[] { "config_datadog:unknown", "config_opentelemetry:otel_traces_sampler_arg" }), new(new[] { "config_datadog:unknown", "config_opentelemetry:unknown" }), - // otel.env.invalid, index = 306 + // otel.env.invalid, index = 307 new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_log_level" }), new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_metrics_exporter" }), new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_propagators" }), @@ -439,30 +440,30 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "config_datadog:unknown", "config_opentelemetry:otel_traces_sampler" }), new(new[] { "config_datadog:unknown", "config_opentelemetry:otel_traces_sampler_arg" }), new(new[] { "config_datadog:unknown", "config_opentelemetry:unknown" }), - // otel.metrics_export_attempts, index = 396 + // otel.metrics_export_attempts, index = 397 new(new[] { "protocol:grpc", "encoding:protobuf" }), new(new[] { "protocol:grpc", "encoding:json" }), new(new[] { "protocol:http", "encoding:protobuf" }), new(new[] { "protocol:http", "encoding:json" }), - // otel.metrics_export_successes, index = 400 + // otel.metrics_export_successes, index = 401 new(new[] { "protocol:grpc", "encoding:protobuf" }), new(new[] { "protocol:grpc", "encoding:json" }), new(new[] { "protocol:http", "encoding:protobuf" }), new(new[] { "protocol:http", "encoding:json" }), - // otel.metrics_export_partial_successes, index = 404 + // otel.metrics_export_partial_successes, index = 405 new(new[] { "protocol:grpc", "encoding:protobuf" }), new(new[] { "protocol:grpc", "encoding:json" }), new(new[] { "protocol:http", "encoding:protobuf" }), new(new[] { "protocol:http", "encoding:json" }), - // otel.metrics_export_failures, index = 408 + // otel.metrics_export_failures, index = 409 new(new[] { "protocol:grpc", "encoding:protobuf" }), new(new[] { "protocol:grpc", "encoding:json" }), new(new[] { "protocol:http", "encoding:protobuf" }), new(new[] { "protocol:http", "encoding:json" }), - // telemetry_api.requests, index = 412 + // telemetry_api.requests, index = 413 new(new[] { "endpoint:agent" }), new(new[] { "endpoint:agentless" }), - // telemetry_api.responses, index = 414 + // telemetry_api.responses, index = 415 new(new[] { "endpoint:agent", "status_code:200" }), new(new[] { "endpoint:agent", "status_code:201" }), new(new[] { "endpoint:agent", "status_code:202" }), @@ -507,18 +508,18 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "endpoint:agentless", "status_code:503" }), new(new[] { "endpoint:agentless", "status_code:504" }), new(new[] { "endpoint:agentless", "status_code:5xx" }), - // telemetry_api.errors, index = 458 + // telemetry_api.errors, index = 459 new(new[] { "endpoint:agent", "type:timeout" }), new(new[] { "endpoint:agent", "type:network" }), new(new[] { "endpoint:agent", "type:status_code" }), new(new[] { "endpoint:agentless", "type:timeout" }), new(new[] { "endpoint:agentless", "type:network" }), new(new[] { "endpoint:agentless", "type:status_code" }), - // version_conflict_tracers_created, index = 464 + // version_conflict_tracers_created, index = 465 new(null), - // unsupported_custom_instrumentation_services, index = 465 + // unsupported_custom_instrumentation_services, index = 466 new(null), - // direct_log_logs, index = 466 + // direct_log_logs, index = 467 new(new[] { "integration_name:datadog" }), new(new[] { "integration_name:opentracing" }), new(new[] { "integration_name:version_conflict" }), @@ -603,10 +604,11 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "integration_name:emailhtmlinjection" }), new(new[] { "integration_name:protobuf" }), new(new[] { "integration_name:hangfire" }), + new(new[] { "integration_name:quartz" }), new(new[] { "integration_name:serverlesscompat" }), - // direct_log_api.requests, index = 551 + // direct_log_api.requests, index = 553 new(null), - // direct_log_api.responses, index = 552 + // direct_log_api.responses, index = 554 new(new[] { "status_code:200" }), new(new[] { "status_code:201" }), new(new[] { "status_code:202" }), @@ -629,11 +631,11 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "status_code:503" }), new(new[] { "status_code:504" }), new(new[] { "status_code:5xx" }), - // direct_log_api.errors, index = 574 + // direct_log_api.errors, index = 576 new(new[] { "type:timeout" }), new(new[] { "type:network" }), new(new[] { "type:status_code" }), - // memory_pressure.transitions, index = 577 + // memory_pressure.transitions, index = 579 new(new[] { "state:enter", "trigger:none" }), new(new[] { "state:enter", "trigger:memory" }), new(new[] { "state:enter", "trigger:gc" }), @@ -642,10 +644,10 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "state:exit", "trigger:memory" }), new(new[] { "state:exit", "trigger:gc" }), new(new[] { "state:exit", "trigger:both" }), - // memory_pressure.disabled, index = 585 + // memory_pressure.disabled, index = 587 new(new[] { "reason:no_signals" }), new(new[] { "reason:error" }), - // memory_pressure.memory_usage_pct, index = 587 + // memory_pressure.memory_usage_pct, index = 589 new(new[] { "state:enter", "bucket:lt_70" }), new(new[] { "state:enter", "bucket:70_80" }), new(new[] { "state:enter", "bucket:80_85" }), @@ -656,7 +658,7 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "state:exit", "bucket:80_85" }), new(new[] { "state:exit", "bucket:85_90" }), new(new[] { "state:exit", "bucket:gte_90" }), - // memory_pressure.gc_activity, index = 597 + // memory_pressure.gc_activity, index = 599 new(new[] { "state:enter", "bucket:lt_1" }), new(new[] { "state:enter", "bucket:1_2" }), new(new[] { "state:enter", "bucket:2_5" }), @@ -665,12 +667,12 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "state:exit", "bucket:1_2" }), new(new[] { "state:exit", "bucket:2_5" }), new(new[] { "state:exit", "bucket:gte_5" }), - // memory_pressure.duration, index = 605 + // memory_pressure.duration, index = 607 new(new[] { "bucket:lt_1s" }), new(new[] { "bucket:1_5s" }), new(new[] { "bucket:5_30s" }), new(new[] { "bucket:gte_30s" }), - // events.skipped, index = 609 + // events.skipped, index = 611 new(new[] { "reason:rateLimitGlobal", "event_type:snapshot" }), new(new[] { "reason:rateLimitGlobal", "event_type:log" }), new(new[] { "reason:rateLimitGlobal", "event_type:metric" }), @@ -683,12 +685,12 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "reason:evaluationTimeout", "event_type:log" }), new(new[] { "reason:evaluationTimeout", "event_type:metric" }), new(new[] { "reason:evaluationTimeout", "event_type:span" }), - // events.dropped, index = 621 + // events.dropped, index = 623 new(new[] { "reason:queueFull", "event_type:snapshot" }), new(new[] { "reason:queueFull", "event_type:log" }), new(new[] { "reason:payloadTooLarge", "event_type:snapshot" }), new(new[] { "reason:payloadTooLarge", "event_type:log" }), - // capture.incomplete, index = 625 + // capture.incomplete, index = 627 new(new[] { "event_type:snapshot", "reason:runtimeError" }), new(new[] { "event_type:snapshot", "reason:timeout" }), new(new[] { "event_type:snapshot", "reason:depth" }), @@ -705,13 +707,13 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "event_type:log", "reason:stringLength" }), new(new[] { "event_type:log", "reason:payloadTooLarge" }), new(new[] { "event_type:log", "reason:other" }), - // waf.init, index = 641 + // waf.init, index = 643 new(new[] { "waf_version", "event_rules_version", "success:true" }), new(new[] { "waf_version", "event_rules_version", "success:false" }), - // waf.updates, index = 643 + // waf.updates, index = 645 new(new[] { "waf_version", "event_rules_version", "success:true" }), new(new[] { "waf_version", "event_rules_version", "success:false" }), - // waf.requests, index = 645 + // waf.requests, index = 647 new(new[] { "waf_version", "event_rules_version", "rule_triggered:false", "request_blocked:false", "waf_timeout:false", "block_failure:false", "rate_limited:false", "input_truncated:false", "waf_error:false" }), new(new[] { "waf_version", "event_rules_version", "rule_triggered:true", "request_blocked:false", "waf_timeout:false", "block_failure:false", "rate_limited:false", "input_truncated:false", "waf_error:false" }), new(new[] { "waf_version", "event_rules_version", "rule_triggered:true", "request_blocked:true", "waf_timeout:false", "block_failure:false", "rate_limited:false", "input_truncated:false", "waf_error:false" }), @@ -722,22 +724,22 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "waf_version", "event_rules_version", "rule_triggered:false", "request_blocked:false", "waf_timeout:true", "block_failure:false", "rate_limited:false", "input_truncated:true", "waf_error:false" }), new(new[] { "waf_version", "event_rules_version", "rule_triggered:false", "request_blocked:false", "waf_timeout:false", "block_failure:false", "rate_limited:false", "input_truncated:false", "waf_error:true" }), new(new[] { "waf_version", "event_rules_version", "rule_triggered:false", "request_blocked:false", "waf_timeout:false", "block_failure:false", "rate_limited:false", "input_truncated:true", "waf_error:true" }), - // waf.input_truncated, index = 655 + // waf.input_truncated, index = 657 new(new[] { "truncation_reason:string_too_long" }), new(new[] { "truncation_reason:list_or_map_too_large" }), new(new[] { "truncation_reason:object_too_deep" }), - // waf.error, index = 658 + // waf.error, index = 660 new(new[] { "waf_version", "event_rules_version", "waf_error:-127" }), new(new[] { "waf_version", "event_rules_version", "waf_error:-3" }), new(new[] { "waf_version", "event_rules_version", "waf_error:-2" }), new(new[] { "waf_version", "event_rules_version", "waf_error:-1" }), - // rasp.rule.eval, index = 662 + // rasp.rule.eval, index = 664 new(new[] { "waf_version", "event_rules_version", "rule_type:lfi" }), new(new[] { "waf_version", "event_rules_version", "rule_type:ssrf" }), new(new[] { "waf_version", "event_rules_version", "rule_type:sql_injection" }), new(new[] { "waf_version", "event_rules_version", "rule_type:command_injection", "rule_variant:shell" }), new(new[] { "waf_version", "event_rules_version", "rule_type:command_injection", "rule_variant:exec" }), - // rasp.rule.match, index = 667 + // rasp.rule.match, index = 669 new(new[] { "waf_version", "event_rules_version", "block:success", "rule_type:lfi" }), new(new[] { "waf_version", "event_rules_version", "block:success", "rule_type:ssrf" }), new(new[] { "waf_version", "event_rules_version", "block:success", "rule_type:sql_injection" }), @@ -753,29 +755,29 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "waf_version", "event_rules_version", "block:irrelevant", "rule_type:sql_injection" }), new(new[] { "waf_version", "event_rules_version", "block:irrelevant", "rule_type:command_injection", "rule_variant:shell" }), new(new[] { "waf_version", "event_rules_version", "block:irrelevant", "rule_type:command_injection", "rule_variant:exec" }), - // rasp.timeout, index = 682 + // rasp.timeout, index = 684 new(new[] { "waf_version", "event_rules_version", "rule_type:lfi" }), new(new[] { "waf_version", "event_rules_version", "rule_type:ssrf" }), new(new[] { "waf_version", "event_rules_version", "rule_type:sql_injection" }), new(new[] { "waf_version", "event_rules_version", "rule_type:command_injection", "rule_variant:shell" }), new(new[] { "waf_version", "event_rules_version", "rule_type:command_injection", "rule_variant:exec" }), - // instrum.user_auth.missing_user_id, index = 687 + // instrum.user_auth.missing_user_id, index = 689 new(new[] { "framework:aspnetcore_identity", "event_type:login_success" }), new(new[] { "framework:aspnetcore_identity", "event_type:login_failure" }), new(new[] { "framework:aspnetcore_identity", "event_type:signup" }), new(new[] { "framework:unknown", "event_type:signup" }), - // instrum.user_auth.missing_user_login, index = 691 + // instrum.user_auth.missing_user_login, index = 693 new(new[] { "framework:aspnetcore_identity", "event_type:login_success" }), new(new[] { "framework:aspnetcore_identity", "event_type:login_failure" }), new(new[] { "framework:aspnetcore_identity", "event_type:signup" }), new(new[] { "framework:unknown", "event_type:signup" }), - // sdk.event, index = 695 + // sdk.event, index = 697 new(new[] { "event_type:login_success", "sdk_version:v1" }), new(new[] { "event_type:login_success", "sdk_version:v2" }), new(new[] { "event_type:login_failure", "sdk_version:v1" }), new(new[] { "event_type:login_failure", "sdk_version:v2" }), new(new[] { "event_type:custom", "sdk_version:v1" }), - // executed.source, index = 700 + // executed.source, index = 702 new(new[] { "source_type:http.request.body" }), new(new[] { "source_type:http.request.path" }), new(new[] { "source_type:http.request.parameter.name" }), @@ -790,9 +792,9 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "source_type:http.request.uri" }), new(new[] { "source_type:grpc.request.body" }), new(new[] { "source_type:sql.row.value" }), - // executed.propagation, index = 714 + // executed.propagation, index = 716 new(null), - // executed.sink, index = 715 + // executed.sink, index = 717 new(new[] { "vulnerability_type:none" }), new(new[] { "vulnerability_type:weak_cipher" }), new(new[] { "vulnerability_type:weak_hash" }), @@ -820,9 +822,9 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "vulnerability_type:directory_listing_leak" }), new(new[] { "vulnerability_type:session_timeout" }), new(new[] { "vulnerability_type:email_html_injection" }), - // request.tainted, index = 742 + // request.tainted, index = 744 new(null), - // suppressed.vulnerabilities, index = 743 + // suppressed.vulnerabilities, index = 745 new(new[] { "vulnerability_type:none" }), new(new[] { "vulnerability_type:weak_cipher" }), new(new[] { "vulnerability_type:weak_hash" }), @@ -858,7 +860,7 @@ private static AggregatedMetric[] GetCountBuffer() /// It is equal to the cardinality of the tag combinations (or 1 if there are no tags) /// private static int[] CountEntryCounts { get; } - = new int[]{ 4, 85, 1, 3, 7, 2, 2, 7, 1, 1, 1, 22, 3, 2, 5, 5, 4, 1, 1, 22, 3, 34, 90, 90, 4, 4, 4, 4, 2, 44, 6, 1, 1, 85, 1, 22, 3, 8, 2, 10, 8, 4, 12, 4, 16, 2, 2, 10, 3, 4, 5, 15, 5, 4, 4, 5, 14, 1, 27, 1, 27, }; + = new int[]{ 4, 86, 1, 3, 7, 2, 2, 7, 1, 1, 1, 22, 3, 2, 5, 5, 4, 1, 1, 22, 3, 34, 90, 90, 4, 4, 4, 4, 2, 44, 6, 1, 1, 86, 1, 22, 3, 8, 2, 10, 8, 4, 12, 4, 16, 2, 2, 10, 3, 4, 5, 15, 5, 4, 4, 5, 14, 1, 27, 1, 27, }; public void RecordCountLogCreated(Datadog.Trace.Telemetry.Metrics.MetricTags.LogLevel tag, int increment = 1) { @@ -874,345 +876,345 @@ public void RecordCountSpanCreated(Datadog.Trace.Telemetry.Metrics.MetricTags.In public void RecordCountSpanFinished(int increment = 1) { - Interlocked.Add(ref _buffer.Count[89], increment); + Interlocked.Add(ref _buffer.Count[90], increment); } public void RecordCountSpanEnqueuedForSerialization(Datadog.Trace.Telemetry.Metrics.MetricTags.SpanEnqueueReason tag, int increment = 1) { - var index = 90 + (int)tag; + var index = 91 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountSpanDropped(Datadog.Trace.Telemetry.Metrics.MetricTags.DropReason tag, int increment = 1) { - var index = 93 + (int)tag; + var index = 94 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTraceSegmentCreated(Datadog.Trace.Telemetry.Metrics.MetricTags.TraceContinuation tag, int increment = 1) { - var index = 100 + (int)tag; + var index = 101 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTraceChunkEnqueued(Datadog.Trace.Telemetry.Metrics.MetricTags.TraceChunkEnqueueReason tag, int increment = 1) { - var index = 102 + (int)tag; + var index = 103 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTraceChunkDropped(Datadog.Trace.Telemetry.Metrics.MetricTags.DropReason tag, int increment = 1) { - var index = 104 + (int)tag; + var index = 105 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTraceChunkSent(int increment = 1) { - Interlocked.Add(ref _buffer.Count[111], increment); + Interlocked.Add(ref _buffer.Count[112], increment); } public void RecordCountTraceSegmentsClosed(int increment = 1) { - Interlocked.Add(ref _buffer.Count[112], increment); + Interlocked.Add(ref _buffer.Count[113], increment); } public void RecordCountTraceApiRequests(int increment = 1) { - Interlocked.Add(ref _buffer.Count[113], increment); + Interlocked.Add(ref _buffer.Count[114], increment); } public void RecordCountTraceApiResponses(Datadog.Trace.Telemetry.Metrics.MetricTags.StatusCode tag, int increment = 1) { - var index = 114 + (int)tag; + var index = 115 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTraceApiErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.ApiError tag, int increment = 1) { - var index = 136 + (int)tag; + var index = 137 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTracePartialFlush(Datadog.Trace.Telemetry.Metrics.MetricTags.PartialFlushReason tag, int increment = 1) { - var index = 139 + (int)tag; + var index = 140 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountContextHeaderStyleInjected(Datadog.Trace.Telemetry.Metrics.MetricTags.ContextHeaderStyle tag, int increment = 1) { - var index = 141 + (int)tag; + var index = 142 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountContextHeaderStyleExtracted(Datadog.Trace.Telemetry.Metrics.MetricTags.ContextHeaderStyle tag, int increment = 1) { - var index = 146 + (int)tag; + var index = 147 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountContextHeaderTruncated(Datadog.Trace.Telemetry.Metrics.MetricTags.ContextHeaderTruncationReason tag, int increment = 1) { - var index = 151 + (int)tag; + var index = 152 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountContextHeaderMalformed(Datadog.Trace.Telemetry.Metrics.MetricTags.ContextHeaderMalformed tag, int increment = 1) { - var index = 155 + (int)tag; + var index = 156 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountStatsApiRequests(int increment = 1) { - Interlocked.Add(ref _buffer.Count[156], increment); + Interlocked.Add(ref _buffer.Count[157], increment); } public void RecordCountStatsApiResponses(Datadog.Trace.Telemetry.Metrics.MetricTags.StatusCode tag, int increment = 1) { - var index = 157 + (int)tag; + var index = 158 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountStatsApiErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.ApiError tag, int increment = 1) { - var index = 179 + (int)tag; + var index = 180 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountStatsCollapsedSpans(Datadog.Trace.Telemetry.Metrics.MetricTags.CollapsedStatsFields tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.OversizedStatsFields tag2, int increment = 1) { - var index = 182 + ((int)tag1 * 2) + (int)tag2; + var index = 183 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountOpenTelemetryConfigHiddenByDatadogConfig(Datadog.Trace.Telemetry.Metrics.MetricTags.DatadogConfiguration tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.OpenTelemetryConfiguration tag2, int increment = 1) { - var index = 216 + ((int)tag1 * 10) + (int)tag2; + var index = 217 + ((int)tag1 * 10) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountOpenTelemetryConfigInvalid(Datadog.Trace.Telemetry.Metrics.MetricTags.DatadogConfiguration tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.OpenTelemetryConfiguration tag2, int increment = 1) { - var index = 306 + ((int)tag1 * 10) + (int)tag2; + var index = 307 + ((int)tag1 * 10) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMetricsExportAttempts(Datadog.Trace.Telemetry.Metrics.MetricTags.Protocol tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.MetricEncoding tag2, int increment = 1) { - var index = 396 + ((int)tag1 * 2) + (int)tag2; + var index = 397 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMetricsExportSuccesses(Datadog.Trace.Telemetry.Metrics.MetricTags.Protocol tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.MetricEncoding tag2, int increment = 1) { - var index = 400 + ((int)tag1 * 2) + (int)tag2; + var index = 401 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMetricsExportPartialSuccesses(Datadog.Trace.Telemetry.Metrics.MetricTags.Protocol tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.MetricEncoding tag2, int increment = 1) { - var index = 404 + ((int)tag1 * 2) + (int)tag2; + var index = 405 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMetricsExportFailures(Datadog.Trace.Telemetry.Metrics.MetricTags.Protocol tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.MetricEncoding tag2, int increment = 1) { - var index = 408 + ((int)tag1 * 2) + (int)tag2; + var index = 409 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTelemetryApiRequests(Datadog.Trace.Telemetry.Metrics.MetricTags.TelemetryEndpoint tag, int increment = 1) { - var index = 412 + (int)tag; + var index = 413 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTelemetryApiResponses(Datadog.Trace.Telemetry.Metrics.MetricTags.TelemetryEndpoint tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.StatusCode tag2, int increment = 1) { - var index = 414 + ((int)tag1 * 22) + (int)tag2; + var index = 415 + ((int)tag1 * 22) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTelemetryApiErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.TelemetryEndpoint tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.ApiError tag2, int increment = 1) { - var index = 458 + ((int)tag1 * 3) + (int)tag2; + var index = 459 + ((int)tag1 * 3) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountVersionConflictTracerCreated(int increment = 1) { - Interlocked.Add(ref _buffer.Count[464], increment); + Interlocked.Add(ref _buffer.Count[465], increment); } public void RecordCountUnsupportedCustomInstrumentationServices(int increment = 1) { - Interlocked.Add(ref _buffer.Count[465], increment); + Interlocked.Add(ref _buffer.Count[466], increment); } public void RecordCountDirectLogLogs(Datadog.Trace.Telemetry.Metrics.MetricTags.IntegrationName tag, int increment = 1) { - var index = 466 + (int)tag; + var index = 467 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDirectLogApiRequests(int increment = 1) { - Interlocked.Add(ref _buffer.Count[551], increment); + Interlocked.Add(ref _buffer.Count[553], increment); } public void RecordCountDirectLogApiResponses(Datadog.Trace.Telemetry.Metrics.MetricTags.StatusCode tag, int increment = 1) { - var index = 552 + (int)tag; + var index = 554 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDirectLogApiErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.ApiError tag, int increment = 1) { - var index = 574 + (int)tag; + var index = 576 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerMemoryPressureTransitions(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureState tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureTrigger tag2, int increment = 1) { - var index = 577 + ((int)tag1 * 4) + (int)tag2; + var index = 579 + ((int)tag1 * 4) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerMemoryPressureDisabled(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureDisabledReason tag, int increment = 1) { - var index = 585 + (int)tag; + var index = 587 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerMemoryPressureMemoryUsagePct(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureState tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureMemoryBucket tag2, int increment = 1) { - var index = 587 + ((int)tag1 * 5) + (int)tag2; + var index = 589 + ((int)tag1 * 5) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerMemoryPressureGcActivity(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureState tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureGcBucket tag2, int increment = 1) { - var index = 597 + ((int)tag1 * 4) + (int)tag2; + var index = 599 + ((int)tag1 * 4) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerMemoryPressureDuration(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureDurationBucket tag, int increment = 1) { - var index = 605 + (int)tag; + var index = 607 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerEventsSkipped(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerEventsSkippedReason tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerEventType tag2, int increment = 1) { - var index = 609 + ((int)tag1 * 4) + (int)tag2; + var index = 611 + ((int)tag1 * 4) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerEventsDropped(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerEventsDroppedReason tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerCaptureEventType tag2, int increment = 1) { - var index = 621 + ((int)tag1 * 2) + (int)tag2; + var index = 623 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerCaptureIncomplete(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerCaptureEventType tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerCaptureIncompleteReason tag2, int increment = 1) { - var index = 625 + ((int)tag1 * 8) + (int)tag2; + var index = 627 + ((int)tag1 * 8) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountWafInit(Datadog.Trace.Telemetry.Metrics.MetricTags.WafStatus tag, int increment = 1) { - var index = 641 + (int)tag; + var index = 643 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountWafUpdates(Datadog.Trace.Telemetry.Metrics.MetricTags.WafStatus tag, int increment = 1) { - var index = 643 + (int)tag; + var index = 645 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountWafRequests(Datadog.Trace.Telemetry.Metrics.MetricTags.WafAnalysis tag, int increment = 1) { - var index = 645 + (int)tag; + var index = 647 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountInputTruncated(Datadog.Trace.Telemetry.Metrics.MetricTags.TruncationReason tag, int increment = 1) { - var index = 655 + (int)tag; + var index = 657 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountWafError(Datadog.Trace.Telemetry.Metrics.MetricTags.WafError tag, int increment = 1) { - var index = 658 + (int)tag; + var index = 660 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountRaspRuleEval(Datadog.Trace.Telemetry.Metrics.MetricTags.RaspRuleType tag, int increment = 1) { - var index = 662 + (int)tag; + var index = 664 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountRaspRuleMatch(Datadog.Trace.Telemetry.Metrics.MetricTags.RaspRuleTypeMatch tag, int increment = 1) { - var index = 667 + (int)tag; + var index = 669 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountRaspTimeout(Datadog.Trace.Telemetry.Metrics.MetricTags.RaspRuleType tag, int increment = 1) { - var index = 682 + (int)tag; + var index = 684 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMissingUserId(Datadog.Trace.Telemetry.Metrics.MetricTags.AuthenticationFrameworkWithEventType tag, int increment = 1) { - var index = 687 + (int)tag; + var index = 689 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMissingUserLogin(Datadog.Trace.Telemetry.Metrics.MetricTags.AuthenticationFrameworkWithEventType tag, int increment = 1) { - var index = 691 + (int)tag; + var index = 693 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountUserEventSdk(Datadog.Trace.Telemetry.Metrics.MetricTags.UserEventSdk tag, int increment = 1) { - var index = 695 + (int)tag; + var index = 697 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountIastExecutedSources(Datadog.Trace.Telemetry.Metrics.MetricTags.IastSourceType tag, int increment = 1) { - var index = 700 + (int)tag; + var index = 702 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountIastExecutedPropagations(int increment = 1) { - Interlocked.Add(ref _buffer.Count[714], increment); + Interlocked.Add(ref _buffer.Count[716], increment); } public void RecordCountIastExecutedSinks(Datadog.Trace.Telemetry.Metrics.MetricTags.IastVulnerabilityType tag, int increment = 1) { - var index = 715 + (int)tag; + var index = 717 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountIastRequestTainted(int increment = 1) { - Interlocked.Add(ref _buffer.Count[742], increment); + Interlocked.Add(ref _buffer.Count[744], increment); } public void RecordCountIastSuppressedVulnerabilities(Datadog.Trace.Telemetry.Metrics.MetricTags.IastVulnerabilityType tag, int increment = 1) { - var index = 743 + (int)tag; + var index = 745 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } } \ No newline at end of file diff --git a/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_CountShared.g.cs b/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_CountShared.g.cs index 82355f89f551..52bbe9a697c4 100644 --- a/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_CountShared.g.cs +++ b/tracer/src/Datadog.Trace/Generated/net6.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_CountShared.g.cs @@ -11,7 +11,7 @@ namespace Datadog.Trace.Telemetry; internal sealed partial class MetricsTelemetryCollector { - private const int CountSharedLength = 340; + private const int CountSharedLength = 344; /// /// Creates the buffer for the values. @@ -356,6 +356,10 @@ private static AggregatedMetric[] GetCountSharedBuffer() new(new[] { "integration_name:hangfire", "error_type:invoker" }), new(new[] { "integration_name:hangfire", "error_type:execution" }), new(new[] { "integration_name:hangfire", "error_type:missing_member" }), + new(new[] { "integration_name:quartz", "error_type:duck_typing" }), + new(new[] { "integration_name:quartz", "error_type:invoker" }), + new(new[] { "integration_name:quartz", "error_type:execution" }), + new(new[] { "integration_name:quartz", "error_type:missing_member" }), new(new[] { "integration_name:serverlesscompat", "error_type:duck_typing" }), new(new[] { "integration_name:serverlesscompat", "error_type:invoker" }), new(new[] { "integration_name:serverlesscompat", "error_type:execution" }), @@ -368,7 +372,7 @@ private static AggregatedMetric[] GetCountSharedBuffer() /// It is equal to the cardinality of the tag combinations (or 1 if there are no tags) /// private static int[] CountSharedEntryCounts { get; } - = new int[]{ 340, }; + = new int[]{ 344, }; public void RecordCountSharedIntegrationsError(Datadog.Trace.Telemetry.Metrics.MetricTags.IntegrationName tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.InstrumentationError tag2, int increment = 1) { diff --git a/tracer/src/Datadog.Trace/Telemetry/Metrics/IntegrationIdExtensions.cs b/tracer/src/Datadog.Trace/Telemetry/Metrics/IntegrationIdExtensions.cs index 3e2d7e976cab..2e41573d6a2c 100644 --- a/tracer/src/Datadog.Trace/Telemetry/Metrics/IntegrationIdExtensions.cs +++ b/tracer/src/Datadog.Trace/Telemetry/Metrics/IntegrationIdExtensions.cs @@ -90,6 +90,7 @@ public static MetricTags.IntegrationName GetMetricTag(this IntegrationId integra IntegrationId.EmailHtmlInjection => MetricTags.IntegrationName.EmailHtmlInjection, IntegrationId.Protobuf => MetricTags.IntegrationName.Protobuf, IntegrationId.Hangfire => MetricTags.IntegrationName.Hangfire, + IntegrationId.Quartz => MetricTags.IntegrationName.Quartz, IntegrationId.DatadogTraceVersionConflict => MetricTags.IntegrationName.VersionConflict, IntegrationId.OpenFeature => MetricTags.IntegrationName.OpenFeature, IntegrationId.ServerlessCompat => MetricTags.IntegrationName.ServerlessCompat, diff --git a/tracer/src/Datadog.Trace/Telemetry/Metrics/MetricTags.cs b/tracer/src/Datadog.Trace/Telemetry/Metrics/MetricTags.cs index 6ad3dfdca5e2..8bfe9d7017b2 100644 --- a/tracer/src/Datadog.Trace/Telemetry/Metrics/MetricTags.cs +++ b/tracer/src/Datadog.Trace/Telemetry/Metrics/MetricTags.cs @@ -386,6 +386,7 @@ internal enum IntegrationName [Description("integration_name:emailhtmlinjection")] EmailHtmlInjection, [Description("integration_name:protobuf")] Protobuf, [Description("integration_name:hangfire")] Hangfire, + [Description("integration_name:quartz")] Quartz, [Description("integration_name:serverlesscompat")] ServerlessCompat } diff --git a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/Azure/AzureServiceBusTests.cs b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/Azure/AzureServiceBusTests.cs index 109ff10be536..b8f5ee763dbc 100644 --- a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/Azure/AzureServiceBusTests.cs +++ b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/Azure/AzureServiceBusTests.cs @@ -88,7 +88,7 @@ await VerifyHelper.VerifySpans(spans, settings, OrderSpans) .UseFileName(filename) .DisableRequireUniquePrefix(); - await telemetry.AssertIntegrationEnabledAsync(IntegrationId.OpenTelemetry); + await telemetry.AssertIntegrationEnabledAsync(IntegrationId.AzureServiceBus); } } diff --git a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs index 54283f41953c..b2ddb1236b7d 100644 --- a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs +++ b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs @@ -89,7 +89,7 @@ await VerifyHelper.VerifySpans( .ThenBy(x => x.Error)) .UseFileName(filename); - await telemetry.AssertIntegrationEnabledAsync(IntegrationId.OpenTelemetry); + await telemetry.AssertIntegrationEnabledAsync(GetIntegrationId(packageVersion)); } } @@ -117,4 +117,9 @@ private static Tuple GetSuffix(string packageVersion) _ => new("V3", 2) }; } + + private static IntegrationId GetIntegrationId(string packageVersion) + => !string.IsNullOrEmpty(packageVersion) && new Version(packageVersion) >= new Version(4, 0, 0) + ? IntegrationId.Quartz + : IntegrationId.OpenTelemetry; } From 81eb08cb68550a48c380c015b873c9b8c075ac58 Mon Sep 17 00:00:00 2001 From: Mohammad Islam Date: Fri, 4 Sep 2026 16:14:38 -0400 Subject: [PATCH 2/8] fix(activity): honor integration settings for handlers Co-Authored-By: Claude --- .../Handlers/ActivityHandlerCommon.cs | 3 ++ .../AzureServiceBusActivityHandler.cs | 3 +- .../Handlers/QuartzActivityHandler.cs | 3 +- .../QuartzTests.cs | 52 +++++++++++++++++++ 4 files changed, 59 insertions(+), 2 deletions(-) diff --git a/tracer/src/Datadog.Trace/Activity/Handlers/ActivityHandlerCommon.cs b/tracer/src/Datadog.Trace/Activity/Handlers/ActivityHandlerCommon.cs index 5e65898d92cc..6794316d9de0 100644 --- a/tracer/src/Datadog.Trace/Activity/Handlers/ActivityHandlerCommon.cs +++ b/tracer/src/Datadog.Trace/Activity/Handlers/ActivityHandlerCommon.cs @@ -245,6 +245,9 @@ static Scope CreateScopeFromActivity(IntegrationId integrationId, T activity, Op rawTraceId: rawTraceId, rawSpanId: rawSpanId); +#pragma warning disable 618 // App analytics is deprecated, but still used + span.SetMetric(Trace.Tags.Analytics, Tracer.Instance.CurrentTraceSettings.Settings.GetIntegrationAnalyticsSampleRate(integrationId, enabledWithGlobalSetting: false)); +#pragma warning restore 618 Tracer.Instance.TracerManager.Telemetry.IntegrationGeneratedSpan(integrationId); return Tracer.Instance.ActivateSpan(span, finishOnClose: false); } diff --git a/tracer/src/Datadog.Trace/Activity/Handlers/AzureServiceBusActivityHandler.cs b/tracer/src/Datadog.Trace/Activity/Handlers/AzureServiceBusActivityHandler.cs index 695c469049fc..7a93266b4980 100644 --- a/tracer/src/Datadog.Trace/Activity/Handlers/AzureServiceBusActivityHandler.cs +++ b/tracer/src/Datadog.Trace/Activity/Handlers/AzureServiceBusActivityHandler.cs @@ -14,7 +14,8 @@ namespace Datadog.Trace.Activity.Handlers internal sealed class AzureServiceBusActivityHandler : IActivityHandler { public bool ShouldListenTo(string sourceName, string? version) - => sourceName.StartsWith("Azure.Messaging.ServiceBus"); + => sourceName.StartsWith("Azure.Messaging.ServiceBus") + && Tracer.Instance.CurrentTraceSettings.Settings.IsIntegrationEnabled(IntegrationId.AzureServiceBus); public void ActivityStarted(string sourceName, T activity) where T : IActivity diff --git a/tracer/src/Datadog.Trace/Activity/Handlers/QuartzActivityHandler.cs b/tracer/src/Datadog.Trace/Activity/Handlers/QuartzActivityHandler.cs index b974ff866c45..222e8b6cc8f9 100644 --- a/tracer/src/Datadog.Trace/Activity/Handlers/QuartzActivityHandler.cs +++ b/tracer/src/Datadog.Trace/Activity/Handlers/QuartzActivityHandler.cs @@ -32,7 +32,8 @@ internal sealed class QuartzActivityHandler : IActivityHandler public bool ShouldListenTo(string sourceName, string? version) { // Listen to Quartz diagnostic source - return sourceName.StartsWith("Quartz"); + return sourceName.StartsWith("Quartz") + && Tracer.Instance.CurrentTraceSettings.Settings.IsIntegrationEnabled(IntegrationId.Quartz); } public void ActivityStarted(string sourceName, T activity) diff --git a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs index b2ddb1236b7d..4ba7b4d1c7cf 100644 --- a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs +++ b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs @@ -15,12 +15,15 @@ using VerifyXunit; using Xunit; using Xunit.Abstractions; +using Xunit.Sdk; namespace Datadog.Trace.ClrProfiler.IntegrationTests; [UsesVerify] public class QuartzTests : TracingIntegrationTest { + private const string AnalyticsSampleRateKey = "_dd1.sr.eausr"; + private readonly Regex _versionRegex = new(@"telemetry.sdk.version: (0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)"); private readonly Regex _timeUnixNanoRegex = new(@"time_unix_nano"":([0-9]{10}[0-9]+)"); @@ -93,6 +96,47 @@ await VerifyHelper.VerifySpans( } } + [SkippableTheory] + [Trait("Category", "EndToEnd")] + [Trait("RunOnWindows", "True")] + [MemberData(nameof(GetData))] + public async Task UsesDefaultActivityHandlerWhenDisabled(string packageVersion) + { + SkipUnlessQuartzV4(packageVersion); + SetEnvironmentVariable("DD_TRACE_QUARTZ_ENABLED", "false"); + + using (var telemetry = this.ConfigureTelemetry()) + using (var agent = EnvironmentHelper.GetMockAgent()) + using (await RunSampleAndWaitForExit(agent, packageVersion: packageVersion)) + { + var (_, expectedSpanCount) = GetSuffix(packageVersion); + var spans = await agent.WaitForSpansAsync(expectedSpanCount); + spans.Should().HaveCount(expectedSpanCount); + + await telemetry.AssertIntegrationAsync(IntegrationId.Quartz, enabled: false, autoEnabled: false); + await telemetry.AssertIntegrationEnabledAsync(IntegrationId.OpenTelemetry); + } + } + + [SkippableTheory] + [Trait("Category", "EndToEnd")] + [Trait("RunOnWindows", "True")] + [MemberData(nameof(GetData))] + public async Task SetsAnalyticsSampleRate(string packageVersion) + { + SkipUnlessQuartzV4(packageVersion); + SetEnvironmentVariable("DD_TRACE_QUARTZ_ANALYTICS_ENABLED", "true"); + SetEnvironmentVariable("DD_TRACE_QUARTZ_ANALYTICS_SAMPLE_RATE", "0.5"); + + using (var agent = EnvironmentHelper.GetMockAgent()) + using (await RunSampleAndWaitForExit(agent, packageVersion: packageVersion)) + { + var (_, expectedSpanCount) = GetSuffix(packageVersion); + var spans = await agent.WaitForSpansAsync(expectedSpanCount); + spans.Should().Contain(s => s.Metrics.TryGetValue(AnalyticsSampleRateKey, out var value) && value == 0.5); + } + } + private static Tuple GetSuffix(string packageVersion) { if (string.IsNullOrEmpty(packageVersion)) @@ -122,4 +166,12 @@ private static IntegrationId GetIntegrationId(string packageVersion) => !string.IsNullOrEmpty(packageVersion) && new Version(packageVersion) >= new Version(4, 0, 0) ? IntegrationId.Quartz : IntegrationId.OpenTelemetry; + + private static void SkipUnlessQuartzV4(string packageVersion) + { + if (string.IsNullOrEmpty(packageVersion) || new Version(packageVersion) < new Version(4, 0, 0)) + { + throw new SkipException("Quartz Activity handler configuration applies to Quartz v4 and later."); + } + } } From 6030da04943126f804cfbb3a68b05de1ccb4328e Mon Sep 17 00:00:00 2001 From: Mohammad Islam Date: Fri, 4 Sep 2026 16:24:54 -0400 Subject: [PATCH 3/8] style: use StringUtil in Quartz tests Co-Authored-By: Claude --- .../QuartzTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs index 4ba7b4d1c7cf..6df76a183569 100644 --- a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs +++ b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs @@ -10,6 +10,7 @@ using System.Threading.Tasks; using Datadog.Trace.Configuration; using Datadog.Trace.TestHelpers; +using Datadog.Trace.Util; using FluentAssertions; using FluentAssertions.Execution; using VerifyXunit; @@ -163,13 +164,13 @@ private static Tuple GetSuffix(string packageVersion) } private static IntegrationId GetIntegrationId(string packageVersion) - => !string.IsNullOrEmpty(packageVersion) && new Version(packageVersion) >= new Version(4, 0, 0) + => !StringUtil.IsNullOrEmpty(packageVersion) && new Version(packageVersion) >= new Version(4, 0, 0) ? IntegrationId.Quartz : IntegrationId.OpenTelemetry; private static void SkipUnlessQuartzV4(string packageVersion) { - if (string.IsNullOrEmpty(packageVersion) || new Version(packageVersion) < new Version(4, 0, 0)) + if (StringUtil.IsNullOrEmpty(packageVersion) || new Version(packageVersion) < new Version(4, 0, 0)) { throw new SkipException("Quartz Activity handler configuration applies to Quartz v4 and later."); } From 47f2406ca949b1a79a8a26b434d17cc4315ba746 Mon Sep 17 00:00:00 2001 From: Mohammad Islam Date: Fri, 4 Sep 2026 16:26:45 -0400 Subject: [PATCH 4/8] test: keep activity handler tests aligned Co-Authored-By: Claude --- .../QuartzTests.cs | 51 ------------------- 1 file changed, 51 deletions(-) diff --git a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs index 6df76a183569..2682c8e2a707 100644 --- a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs +++ b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs @@ -16,15 +16,12 @@ using VerifyXunit; using Xunit; using Xunit.Abstractions; -using Xunit.Sdk; namespace Datadog.Trace.ClrProfiler.IntegrationTests; [UsesVerify] public class QuartzTests : TracingIntegrationTest { - private const string AnalyticsSampleRateKey = "_dd1.sr.eausr"; - private readonly Regex _versionRegex = new(@"telemetry.sdk.version: (0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)"); private readonly Regex _timeUnixNanoRegex = new(@"time_unix_nano"":([0-9]{10}[0-9]+)"); @@ -97,47 +94,6 @@ await VerifyHelper.VerifySpans( } } - [SkippableTheory] - [Trait("Category", "EndToEnd")] - [Trait("RunOnWindows", "True")] - [MemberData(nameof(GetData))] - public async Task UsesDefaultActivityHandlerWhenDisabled(string packageVersion) - { - SkipUnlessQuartzV4(packageVersion); - SetEnvironmentVariable("DD_TRACE_QUARTZ_ENABLED", "false"); - - using (var telemetry = this.ConfigureTelemetry()) - using (var agent = EnvironmentHelper.GetMockAgent()) - using (await RunSampleAndWaitForExit(agent, packageVersion: packageVersion)) - { - var (_, expectedSpanCount) = GetSuffix(packageVersion); - var spans = await agent.WaitForSpansAsync(expectedSpanCount); - spans.Should().HaveCount(expectedSpanCount); - - await telemetry.AssertIntegrationAsync(IntegrationId.Quartz, enabled: false, autoEnabled: false); - await telemetry.AssertIntegrationEnabledAsync(IntegrationId.OpenTelemetry); - } - } - - [SkippableTheory] - [Trait("Category", "EndToEnd")] - [Trait("RunOnWindows", "True")] - [MemberData(nameof(GetData))] - public async Task SetsAnalyticsSampleRate(string packageVersion) - { - SkipUnlessQuartzV4(packageVersion); - SetEnvironmentVariable("DD_TRACE_QUARTZ_ANALYTICS_ENABLED", "true"); - SetEnvironmentVariable("DD_TRACE_QUARTZ_ANALYTICS_SAMPLE_RATE", "0.5"); - - using (var agent = EnvironmentHelper.GetMockAgent()) - using (await RunSampleAndWaitForExit(agent, packageVersion: packageVersion)) - { - var (_, expectedSpanCount) = GetSuffix(packageVersion); - var spans = await agent.WaitForSpansAsync(expectedSpanCount); - spans.Should().Contain(s => s.Metrics.TryGetValue(AnalyticsSampleRateKey, out var value) && value == 0.5); - } - } - private static Tuple GetSuffix(string packageVersion) { if (string.IsNullOrEmpty(packageVersion)) @@ -168,11 +124,4 @@ private static IntegrationId GetIntegrationId(string packageVersion) ? IntegrationId.Quartz : IntegrationId.OpenTelemetry; - private static void SkipUnlessQuartzV4(string packageVersion) - { - if (StringUtil.IsNullOrEmpty(packageVersion) || new Version(packageVersion) < new Version(4, 0, 0)) - { - throw new SkipException("Quartz Activity handler configuration applies to Quartz v4 and later."); - } - } } From 57adac695ac09e52f28b0a41332524b5a6324fa0 Mon Sep 17 00:00:00 2001 From: Mohammad Islam Date: Fri, 4 Sep 2026 17:03:00 -0400 Subject: [PATCH 5/8] fix: report Quartz telemetry for activity spans Co-Authored-By: Claude --- .../QuartzDiagnosticObserver.cs | 7 + ...ntegrationIdExtensions_EnumExtensions.g.cs | 5 +- .../IntegrationNameToKeys.g.cs | 6 + ...MetricsTelemetryCollector_CountShared.g.cs | 8 +- .../MetricsTelemetryCollector_Count.g.cs | 242 +++++++++--------- ...MetricsTelemetryCollector_CountShared.g.cs | 8 +- ...ntegrationIdExtensions_EnumExtensions.g.cs | 5 +- .../IntegrationNameToKeys.g.cs | 6 + ...MetricsTelemetryCollector_CountShared.g.cs | 8 +- .../MetricsTelemetryCollector_Count.g.cs | 242 +++++++++--------- ...MetricsTelemetryCollector_CountShared.g.cs | 8 +- ...ntegrationIdExtensions_EnumExtensions.g.cs | 5 +- .../IntegrationNameToKeys.g.cs | 6 + ...MetricsTelemetryCollector_CountShared.g.cs | 8 +- .../MetricsTelemetryCollector_Count.g.cs | 242 +++++++++--------- ...MetricsTelemetryCollector_CountShared.g.cs | 8 +- .../QuartzTests.cs | 9 +- 17 files changed, 440 insertions(+), 383 deletions(-) diff --git a/tracer/src/Datadog.Trace/DiagnosticListeners/QuartzDiagnosticObserver.cs b/tracer/src/Datadog.Trace/DiagnosticListeners/QuartzDiagnosticObserver.cs index 31cb3eba5d1c..15d91975a11e 100644 --- a/tracer/src/Datadog.Trace/DiagnosticListeners/QuartzDiagnosticObserver.cs +++ b/tracer/src/Datadog.Trace/DiagnosticListeners/QuartzDiagnosticObserver.cs @@ -8,6 +8,7 @@ using Datadog.Trace.Activity; using Datadog.Trace.Activity.DuckTypes; using Datadog.Trace.ClrProfiler.AutoInstrumentation.Quartz; +using Datadog.Trace.Configuration; using Datadog.Trace.Logging; namespace Datadog.Trace.DiagnosticListeners; @@ -28,6 +29,11 @@ internal sealed class QuartzDiagnosticObserver : DiagnosticObserver protected override void OnNext(string eventName, object arg) { + if (!Tracer.Instance.CurrentTraceSettings.Settings.IsIntegrationEnabled(IntegrationId.Quartz)) + { + return; + } + switch (eventName) { case "Quartz.Job.Execute.Start": @@ -45,6 +51,7 @@ protected override void OnNext(string eventName, object arg) if (activity?.Instance is not null) { QuartzCommon.EnhanceActivityMetadata(activity); + Tracer.Instance.TracerManager.Telemetry.IntegrationGeneratedSpan(IntegrationId.Quartz); } break; diff --git a/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationIdExtensions_EnumExtensions.g.cs b/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationIdExtensions_EnumExtensions.g.cs index cfc3e86ece7b..1e7a3ce2ce2c 100644 --- a/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationIdExtensions_EnumExtensions.g.cs +++ b/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationIdExtensions_EnumExtensions.g.cs @@ -17,7 +17,7 @@ internal static partial class IntegrationIdExtensions /// The number of members in the enum. /// This is a non-distinct count of defined names. /// - public const int Length = 80; + public const int Length = 81; /// /// Returns the string representation of the value. @@ -109,6 +109,7 @@ public static string ToStringFast(this Datadog.Trace.Configuration.IntegrationId Datadog.Trace.Configuration.IntegrationId.DatadogTraceVersionConflict => nameof(Datadog.Trace.Configuration.IntegrationId.DatadogTraceVersionConflict), Datadog.Trace.Configuration.IntegrationId.Hangfire => nameof(Datadog.Trace.Configuration.IntegrationId.Hangfire), Datadog.Trace.Configuration.IntegrationId.OpenFeature => nameof(Datadog.Trace.Configuration.IntegrationId.OpenFeature), + Datadog.Trace.Configuration.IntegrationId.Quartz => nameof(Datadog.Trace.Configuration.IntegrationId.Quartz), Datadog.Trace.Configuration.IntegrationId.ServerlessCompat => nameof(Datadog.Trace.Configuration.IntegrationId.ServerlessCompat), _ => value.ToString(), }; @@ -202,6 +203,7 @@ public static Datadog.Trace.Configuration.IntegrationId[] GetValues() Datadog.Trace.Configuration.IntegrationId.DatadogTraceVersionConflict, Datadog.Trace.Configuration.IntegrationId.Hangfire, Datadog.Trace.Configuration.IntegrationId.OpenFeature, + Datadog.Trace.Configuration.IntegrationId.Quartz, Datadog.Trace.Configuration.IntegrationId.ServerlessCompat, }; @@ -295,6 +297,7 @@ public static string[] GetNames() nameof(Datadog.Trace.Configuration.IntegrationId.DatadogTraceVersionConflict), nameof(Datadog.Trace.Configuration.IntegrationId.Hangfire), nameof(Datadog.Trace.Configuration.IntegrationId.OpenFeature), + nameof(Datadog.Trace.Configuration.IntegrationId.Quartz), nameof(Datadog.Trace.Configuration.IntegrationId.ServerlessCompat), }; } \ No newline at end of file diff --git a/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationNameToKeys.g.cs b/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationNameToKeys.g.cs index 1082a62da2ba..d5375990de0a 100644 --- a/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationNameToKeys.g.cs +++ b/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationNameToKeys.g.cs @@ -259,6 +259,9 @@ public static string[] GetAllIntegrationEnabledKeys() => "DD_TRACE_OPENFEATURE_ENABLED", "DD_TRACE_OpenFeature_ENABLED", "DD_OpenFeature_ENABLED", "DD_TRACE_OPENFEATURE_ANALYTICS_ENABLED", "DD_TRACE_OpenFeature_ANALYTICS_ENABLED", "DD_OpenFeature_ANALYTICS_ENABLED", "DD_TRACE_OPENFEATURE_ANALYTICS_SAMPLE_RATE", "DD_TRACE_OpenFeature_ANALYTICS_SAMPLE_RATE", "DD_OpenFeature_ANALYTICS_SAMPLE_RATE", + "DD_TRACE_QUARTZ_ENABLED", "DD_TRACE_Quartz_ENABLED", "DD_Quartz_ENABLED", + "DD_TRACE_QUARTZ_ANALYTICS_ENABLED", "DD_TRACE_Quartz_ANALYTICS_ENABLED", "DD_Quartz_ANALYTICS_ENABLED", + "DD_TRACE_QUARTZ_ANALYTICS_SAMPLE_RATE", "DD_TRACE_Quartz_ANALYTICS_SAMPLE_RATE", "DD_Quartz_ANALYTICS_SAMPLE_RATE", "DD_TRACE_SERVERLESSCOMPAT_ENABLED", "DD_TRACE_ServerlessCompat_ENABLED", "DD_ServerlessCompat_ENABLED", "DD_TRACE_SERVERLESSCOMPAT_ANALYTICS_ENABLED", "DD_TRACE_ServerlessCompat_ANALYTICS_ENABLED", "DD_ServerlessCompat_ANALYTICS_ENABLED", "DD_TRACE_SERVERLESSCOMPAT_ANALYTICS_SAMPLE_RATE", "DD_TRACE_ServerlessCompat_ANALYTICS_SAMPLE_RATE", "DD_ServerlessCompat_ANALYTICS_SAMPLE_RATE", @@ -351,6 +354,7 @@ public static System.Collections.Generic.KeyValuePair GetInteg "DatadogTraceVersionConflict" => new("DD_TRACE_DATADOGTRACEVERSIONCONFLICT_ENABLED", ["DD_TRACE_DatadogTraceVersionConflict_ENABLED", "DD_DatadogTraceVersionConflict_ENABLED"]), "Hangfire" => new("DD_TRACE_HANGFIRE_ENABLED", ["DD_TRACE_Hangfire_ENABLED", "DD_Hangfire_ENABLED"]), "OpenFeature" => new("DD_TRACE_OPENFEATURE_ENABLED", ["DD_TRACE_OpenFeature_ENABLED", "DD_OpenFeature_ENABLED"]), + "Quartz" => new("DD_TRACE_QUARTZ_ENABLED", ["DD_TRACE_Quartz_ENABLED", "DD_Quartz_ENABLED"]), "ServerlessCompat" => new("DD_TRACE_SERVERLESSCOMPAT_ENABLED", ["DD_TRACE_ServerlessCompat_ENABLED", "DD_ServerlessCompat_ENABLED"]), _ => GetIntegrationEnabledKeysFallback(integrationName) // we should never get here }; @@ -443,6 +447,7 @@ public static System.Collections.Generic.KeyValuePair GetInteg "DatadogTraceVersionConflict" => new("DD_TRACE_DATADOGTRACEVERSIONCONFLICT_ANALYTICS_ENABLED", ["DD_TRACE_DatadogTraceVersionConflict_ANALYTICS_ENABLED", "DD_DatadogTraceVersionConflict_ANALYTICS_ENABLED"]), "Hangfire" => new("DD_TRACE_HANGFIRE_ANALYTICS_ENABLED", ["DD_TRACE_Hangfire_ANALYTICS_ENABLED", "DD_Hangfire_ANALYTICS_ENABLED"]), "OpenFeature" => new("DD_TRACE_OPENFEATURE_ANALYTICS_ENABLED", ["DD_TRACE_OpenFeature_ANALYTICS_ENABLED", "DD_OpenFeature_ANALYTICS_ENABLED"]), + "Quartz" => new("DD_TRACE_QUARTZ_ANALYTICS_ENABLED", ["DD_TRACE_Quartz_ANALYTICS_ENABLED", "DD_Quartz_ANALYTICS_ENABLED"]), "ServerlessCompat" => new("DD_TRACE_SERVERLESSCOMPAT_ANALYTICS_ENABLED", ["DD_TRACE_ServerlessCompat_ANALYTICS_ENABLED", "DD_ServerlessCompat_ANALYTICS_ENABLED"]), _ => GetIntegrationAnalyticsEnabledKeysFallback(integrationName) // we should never get here }; @@ -535,6 +540,7 @@ public static System.Collections.Generic.KeyValuePair GetInteg "DatadogTraceVersionConflict" => new("DD_TRACE_DATADOGTRACEVERSIONCONFLICT_ANALYTICS_SAMPLE_RATE", ["DD_TRACE_DatadogTraceVersionConflict_ANALYTICS_SAMPLE_RATE", "DD_DatadogTraceVersionConflict_ANALYTICS_SAMPLE_RATE"]), "Hangfire" => new("DD_TRACE_HANGFIRE_ANALYTICS_SAMPLE_RATE", ["DD_TRACE_Hangfire_ANALYTICS_SAMPLE_RATE", "DD_Hangfire_ANALYTICS_SAMPLE_RATE"]), "OpenFeature" => new("DD_TRACE_OPENFEATURE_ANALYTICS_SAMPLE_RATE", ["DD_TRACE_OpenFeature_ANALYTICS_SAMPLE_RATE", "DD_OpenFeature_ANALYTICS_SAMPLE_RATE"]), + "Quartz" => new("DD_TRACE_QUARTZ_ANALYTICS_SAMPLE_RATE", ["DD_TRACE_Quartz_ANALYTICS_SAMPLE_RATE", "DD_Quartz_ANALYTICS_SAMPLE_RATE"]), "ServerlessCompat" => new("DD_TRACE_SERVERLESSCOMPAT_ANALYTICS_SAMPLE_RATE", ["DD_TRACE_ServerlessCompat_ANALYTICS_SAMPLE_RATE", "DD_ServerlessCompat_ANALYTICS_SAMPLE_RATE"]), _ => GetIntegrationAnalyticsSampleRateKeysFallback(integrationName) // we should never get here }; diff --git a/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountShared.g.cs b/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountShared.g.cs index 074a939c1ce9..3eee24bd10a9 100644 --- a/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountShared.g.cs +++ b/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountShared.g.cs @@ -11,7 +11,7 @@ namespace Datadog.Trace.Telemetry; internal sealed partial class CiVisibilityMetricsTelemetryCollector { - private const int CountSharedLength = 340; + private const int CountSharedLength = 344; /// /// Creates the buffer for the values. @@ -356,6 +356,10 @@ private static AggregatedMetric[] GetCountSharedBuffer() new(new[] { "integration_name:hangfire", "error_type:invoker" }), new(new[] { "integration_name:hangfire", "error_type:execution" }), new(new[] { "integration_name:hangfire", "error_type:missing_member" }), + new(new[] { "integration_name:quartz", "error_type:duck_typing" }), + new(new[] { "integration_name:quartz", "error_type:invoker" }), + new(new[] { "integration_name:quartz", "error_type:execution" }), + new(new[] { "integration_name:quartz", "error_type:missing_member" }), new(new[] { "integration_name:serverlesscompat", "error_type:duck_typing" }), new(new[] { "integration_name:serverlesscompat", "error_type:invoker" }), new(new[] { "integration_name:serverlesscompat", "error_type:execution" }), @@ -368,7 +372,7 @@ private static AggregatedMetric[] GetCountSharedBuffer() /// It is equal to the cardinality of the tag combinations (or 1 if there are no tags) /// private static int[] CountSharedEntryCounts { get; } - = new int[]{ 340, }; + = new int[]{ 344, }; public void RecordCountSharedIntegrationsError(Datadog.Trace.Telemetry.Metrics.MetricTags.IntegrationName tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.InstrumentationError tag2, int increment = 1) { diff --git a/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_Count.g.cs b/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_Count.g.cs index ea54deed1d51..012f230b22c9 100644 --- a/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_Count.g.cs +++ b/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_Count.g.cs @@ -11,7 +11,7 @@ namespace Datadog.Trace.Telemetry; internal sealed partial class MetricsTelemetryCollector { - private const int CountLength = 770; + private const int CountLength = 772; /// /// Creates the buffer for the values. @@ -109,14 +109,15 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "integration_name:emailhtmlinjection" }), new(new[] { "integration_name:protobuf" }), new(new[] { "integration_name:hangfire" }), + new(new[] { "integration_name:quartz" }), new(new[] { "integration_name:serverlesscompat" }), - // spans_finished, index = 89 + // spans_finished, index = 90 new(null), - // spans_enqueued_for_serialization, index = 90 + // spans_enqueued_for_serialization, index = 91 new(new[] { "reason:p0_keep" }), new(new[] { "reason:single_span_sampling" }), new(new[] { "reason:default" }), - // spans_dropped, index = 93 + // spans_dropped, index = 94 new(new[] { "reason:p0_drop" }), new(new[] { "reason:overfull_buffer" }), new(new[] { "reason:trace_too_large" }), @@ -124,13 +125,13 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "reason:api_error" }), new(new[] { "reason:trace_filter" }), new(new[] { "reason:buffer_locked" }), - // trace_segments_created, index = 100 + // trace_segments_created, index = 101 new(new[] { "new_continued:new" }), new(new[] { "new_continued:continued" }), - // trace_chunks_enqueued_for_serialization, index = 102 + // trace_chunks_enqueued_for_serialization, index = 103 new(new[] { "reason:p0_keep" }), new(new[] { "reason:default" }), - // trace_chunks_dropped, index = 104 + // trace_chunks_dropped, index = 105 new(new[] { "reason:p0_drop" }), new(new[] { "reason:overfull_buffer" }), new(new[] { "reason:trace_too_large" }), @@ -138,13 +139,13 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "reason:api_error" }), new(new[] { "reason:trace_filter" }), new(new[] { "reason:buffer_locked" }), - // trace_chunks_sent, index = 111 + // trace_chunks_sent, index = 112 new(null), - // trace_segments_closed, index = 112 + // trace_segments_closed, index = 113 new(null), - // trace_api.requests, index = 113 + // trace_api.requests, index = 114 new(null), - // trace_api.responses, index = 114 + // trace_api.responses, index = 115 new(new[] { "status_code:200" }), new(new[] { "status_code:201" }), new(new[] { "status_code:202" }), @@ -167,35 +168,35 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "status_code:503" }), new(new[] { "status_code:504" }), new(new[] { "status_code:5xx" }), - // trace_api.errors, index = 136 + // trace_api.errors, index = 137 new(new[] { "type:timeout" }), new(new[] { "type:network" }), new(new[] { "type:status_code" }), - // trace_partial_flush.count, index = 139 + // trace_partial_flush.count, index = 140 new(new[] { "reason:large_trace" }), new(new[] { "reason:single_span_ingestion" }), - // context_header_style.injected, index = 141 + // context_header_style.injected, index = 142 new(new[] { "header_style:tracecontext" }), new(new[] { "header_style:datadog" }), new(new[] { "header_style:b3multi" }), new(new[] { "header_style:b3single" }), new(new[] { "header_style:baggage" }), - // context_header_style.extracted, index = 146 + // context_header_style.extracted, index = 147 new(new[] { "header_style:tracecontext" }), new(new[] { "header_style:datadog" }), new(new[] { "header_style:b3multi" }), new(new[] { "header_style:b3single" }), new(new[] { "header_style:baggage" }), - // context_header.truncated, index = 151 + // context_header.truncated, index = 152 new(new[] { "truncation_reason:baggage_item_count_exceeded" }), new(new[] { "truncation_reason:baggage_byte_count_exceeded" }), new(new[] { "truncation_reason:baggage_extract_item_exceeded" }), new(new[] { "truncation_reason:baggage_extract_byte_exceeded" }), - // context_header_style.malformed, index = 155 + // context_header_style.malformed, index = 156 new(new[] { "header_style:baggage" }), - // stats_api.requests, index = 156 + // stats_api.requests, index = 157 new(null), - // stats_api.responses, index = 157 + // stats_api.responses, index = 158 new(new[] { "status_code:200" }), new(new[] { "status_code:201" }), new(new[] { "status_code:202" }), @@ -218,11 +219,11 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "status_code:503" }), new(new[] { "status_code:504" }), new(new[] { "status_code:5xx" }), - // stats_api.errors, index = 179 + // stats_api.errors, index = 180 new(new[] { "type:timeout" }), new(new[] { "type:network" }), new(new[] { "type:status_code" }), - // stats_collapsed_spans, index = 182 + // stats_collapsed_spans, index = 183 new(null), new(new[] { "oversized:additional_metric_tags" }), new(new[] { "collapsed:whole_key" }), @@ -257,7 +258,7 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "collapsed:http_endpoint", "collapsed:peer_tags", "collapsed:additional_metric_tags", "oversized:additional_metric_tags" }), new(new[] { "collapsed:resource", "collapsed:http_endpoint", "collapsed:peer_tags", "collapsed:additional_metric_tags" }), new(new[] { "collapsed:resource", "collapsed:http_endpoint", "collapsed:peer_tags", "collapsed:additional_metric_tags", "oversized:additional_metric_tags" }), - // otel.env.hiding, index = 216 + // otel.env.hiding, index = 217 new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_log_level" }), new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_metrics_exporter" }), new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_propagators" }), @@ -348,7 +349,7 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "config_datadog:unknown", "config_opentelemetry:otel_traces_sampler" }), new(new[] { "config_datadog:unknown", "config_opentelemetry:otel_traces_sampler_arg" }), new(new[] { "config_datadog:unknown", "config_opentelemetry:unknown" }), - // otel.env.invalid, index = 306 + // otel.env.invalid, index = 307 new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_log_level" }), new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_metrics_exporter" }), new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_propagators" }), @@ -439,30 +440,30 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "config_datadog:unknown", "config_opentelemetry:otel_traces_sampler" }), new(new[] { "config_datadog:unknown", "config_opentelemetry:otel_traces_sampler_arg" }), new(new[] { "config_datadog:unknown", "config_opentelemetry:unknown" }), - // otel.metrics_export_attempts, index = 396 + // otel.metrics_export_attempts, index = 397 new(new[] { "protocol:grpc", "encoding:protobuf" }), new(new[] { "protocol:grpc", "encoding:json" }), new(new[] { "protocol:http", "encoding:protobuf" }), new(new[] { "protocol:http", "encoding:json" }), - // otel.metrics_export_successes, index = 400 + // otel.metrics_export_successes, index = 401 new(new[] { "protocol:grpc", "encoding:protobuf" }), new(new[] { "protocol:grpc", "encoding:json" }), new(new[] { "protocol:http", "encoding:protobuf" }), new(new[] { "protocol:http", "encoding:json" }), - // otel.metrics_export_partial_successes, index = 404 + // otel.metrics_export_partial_successes, index = 405 new(new[] { "protocol:grpc", "encoding:protobuf" }), new(new[] { "protocol:grpc", "encoding:json" }), new(new[] { "protocol:http", "encoding:protobuf" }), new(new[] { "protocol:http", "encoding:json" }), - // otel.metrics_export_failures, index = 408 + // otel.metrics_export_failures, index = 409 new(new[] { "protocol:grpc", "encoding:protobuf" }), new(new[] { "protocol:grpc", "encoding:json" }), new(new[] { "protocol:http", "encoding:protobuf" }), new(new[] { "protocol:http", "encoding:json" }), - // telemetry_api.requests, index = 412 + // telemetry_api.requests, index = 413 new(new[] { "endpoint:agent" }), new(new[] { "endpoint:agentless" }), - // telemetry_api.responses, index = 414 + // telemetry_api.responses, index = 415 new(new[] { "endpoint:agent", "status_code:200" }), new(new[] { "endpoint:agent", "status_code:201" }), new(new[] { "endpoint:agent", "status_code:202" }), @@ -507,18 +508,18 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "endpoint:agentless", "status_code:503" }), new(new[] { "endpoint:agentless", "status_code:504" }), new(new[] { "endpoint:agentless", "status_code:5xx" }), - // telemetry_api.errors, index = 458 + // telemetry_api.errors, index = 459 new(new[] { "endpoint:agent", "type:timeout" }), new(new[] { "endpoint:agent", "type:network" }), new(new[] { "endpoint:agent", "type:status_code" }), new(new[] { "endpoint:agentless", "type:timeout" }), new(new[] { "endpoint:agentless", "type:network" }), new(new[] { "endpoint:agentless", "type:status_code" }), - // version_conflict_tracers_created, index = 464 + // version_conflict_tracers_created, index = 465 new(null), - // unsupported_custom_instrumentation_services, index = 465 + // unsupported_custom_instrumentation_services, index = 466 new(null), - // direct_log_logs, index = 466 + // direct_log_logs, index = 467 new(new[] { "integration_name:datadog" }), new(new[] { "integration_name:opentracing" }), new(new[] { "integration_name:version_conflict" }), @@ -603,10 +604,11 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "integration_name:emailhtmlinjection" }), new(new[] { "integration_name:protobuf" }), new(new[] { "integration_name:hangfire" }), + new(new[] { "integration_name:quartz" }), new(new[] { "integration_name:serverlesscompat" }), - // direct_log_api.requests, index = 551 + // direct_log_api.requests, index = 553 new(null), - // direct_log_api.responses, index = 552 + // direct_log_api.responses, index = 554 new(new[] { "status_code:200" }), new(new[] { "status_code:201" }), new(new[] { "status_code:202" }), @@ -629,11 +631,11 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "status_code:503" }), new(new[] { "status_code:504" }), new(new[] { "status_code:5xx" }), - // direct_log_api.errors, index = 574 + // direct_log_api.errors, index = 576 new(new[] { "type:timeout" }), new(new[] { "type:network" }), new(new[] { "type:status_code" }), - // memory_pressure.transitions, index = 577 + // memory_pressure.transitions, index = 579 new(new[] { "state:enter", "trigger:none" }), new(new[] { "state:enter", "trigger:memory" }), new(new[] { "state:enter", "trigger:gc" }), @@ -642,10 +644,10 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "state:exit", "trigger:memory" }), new(new[] { "state:exit", "trigger:gc" }), new(new[] { "state:exit", "trigger:both" }), - // memory_pressure.disabled, index = 585 + // memory_pressure.disabled, index = 587 new(new[] { "reason:no_signals" }), new(new[] { "reason:error" }), - // memory_pressure.memory_usage_pct, index = 587 + // memory_pressure.memory_usage_pct, index = 589 new(new[] { "state:enter", "bucket:lt_70" }), new(new[] { "state:enter", "bucket:70_80" }), new(new[] { "state:enter", "bucket:80_85" }), @@ -656,7 +658,7 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "state:exit", "bucket:80_85" }), new(new[] { "state:exit", "bucket:85_90" }), new(new[] { "state:exit", "bucket:gte_90" }), - // memory_pressure.gc_activity, index = 597 + // memory_pressure.gc_activity, index = 599 new(new[] { "state:enter", "bucket:lt_1" }), new(new[] { "state:enter", "bucket:1_2" }), new(new[] { "state:enter", "bucket:2_5" }), @@ -665,12 +667,12 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "state:exit", "bucket:1_2" }), new(new[] { "state:exit", "bucket:2_5" }), new(new[] { "state:exit", "bucket:gte_5" }), - // memory_pressure.duration, index = 605 + // memory_pressure.duration, index = 607 new(new[] { "bucket:lt_1s" }), new(new[] { "bucket:1_5s" }), new(new[] { "bucket:5_30s" }), new(new[] { "bucket:gte_30s" }), - // events.skipped, index = 609 + // events.skipped, index = 611 new(new[] { "reason:rateLimitGlobal", "event_type:snapshot" }), new(new[] { "reason:rateLimitGlobal", "event_type:log" }), new(new[] { "reason:rateLimitGlobal", "event_type:metric" }), @@ -683,12 +685,12 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "reason:evaluationTimeout", "event_type:log" }), new(new[] { "reason:evaluationTimeout", "event_type:metric" }), new(new[] { "reason:evaluationTimeout", "event_type:span" }), - // events.dropped, index = 621 + // events.dropped, index = 623 new(new[] { "reason:queueFull", "event_type:snapshot" }), new(new[] { "reason:queueFull", "event_type:log" }), new(new[] { "reason:payloadTooLarge", "event_type:snapshot" }), new(new[] { "reason:payloadTooLarge", "event_type:log" }), - // capture.incomplete, index = 625 + // capture.incomplete, index = 627 new(new[] { "event_type:snapshot", "reason:runtimeError" }), new(new[] { "event_type:snapshot", "reason:timeout" }), new(new[] { "event_type:snapshot", "reason:depth" }), @@ -705,13 +707,13 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "event_type:log", "reason:stringLength" }), new(new[] { "event_type:log", "reason:payloadTooLarge" }), new(new[] { "event_type:log", "reason:other" }), - // waf.init, index = 641 + // waf.init, index = 643 new(new[] { "waf_version", "event_rules_version", "success:true" }), new(new[] { "waf_version", "event_rules_version", "success:false" }), - // waf.updates, index = 643 + // waf.updates, index = 645 new(new[] { "waf_version", "event_rules_version", "success:true" }), new(new[] { "waf_version", "event_rules_version", "success:false" }), - // waf.requests, index = 645 + // waf.requests, index = 647 new(new[] { "waf_version", "event_rules_version", "rule_triggered:false", "request_blocked:false", "waf_timeout:false", "block_failure:false", "rate_limited:false", "input_truncated:false", "waf_error:false" }), new(new[] { "waf_version", "event_rules_version", "rule_triggered:true", "request_blocked:false", "waf_timeout:false", "block_failure:false", "rate_limited:false", "input_truncated:false", "waf_error:false" }), new(new[] { "waf_version", "event_rules_version", "rule_triggered:true", "request_blocked:true", "waf_timeout:false", "block_failure:false", "rate_limited:false", "input_truncated:false", "waf_error:false" }), @@ -722,22 +724,22 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "waf_version", "event_rules_version", "rule_triggered:false", "request_blocked:false", "waf_timeout:true", "block_failure:false", "rate_limited:false", "input_truncated:true", "waf_error:false" }), new(new[] { "waf_version", "event_rules_version", "rule_triggered:false", "request_blocked:false", "waf_timeout:false", "block_failure:false", "rate_limited:false", "input_truncated:false", "waf_error:true" }), new(new[] { "waf_version", "event_rules_version", "rule_triggered:false", "request_blocked:false", "waf_timeout:false", "block_failure:false", "rate_limited:false", "input_truncated:true", "waf_error:true" }), - // waf.input_truncated, index = 655 + // waf.input_truncated, index = 657 new(new[] { "truncation_reason:string_too_long" }), new(new[] { "truncation_reason:list_or_map_too_large" }), new(new[] { "truncation_reason:object_too_deep" }), - // waf.error, index = 658 + // waf.error, index = 660 new(new[] { "waf_version", "event_rules_version", "waf_error:-127" }), new(new[] { "waf_version", "event_rules_version", "waf_error:-3" }), new(new[] { "waf_version", "event_rules_version", "waf_error:-2" }), new(new[] { "waf_version", "event_rules_version", "waf_error:-1" }), - // rasp.rule.eval, index = 662 + // rasp.rule.eval, index = 664 new(new[] { "waf_version", "event_rules_version", "rule_type:lfi" }), new(new[] { "waf_version", "event_rules_version", "rule_type:ssrf" }), new(new[] { "waf_version", "event_rules_version", "rule_type:sql_injection" }), new(new[] { "waf_version", "event_rules_version", "rule_type:command_injection", "rule_variant:shell" }), new(new[] { "waf_version", "event_rules_version", "rule_type:command_injection", "rule_variant:exec" }), - // rasp.rule.match, index = 667 + // rasp.rule.match, index = 669 new(new[] { "waf_version", "event_rules_version", "block:success", "rule_type:lfi" }), new(new[] { "waf_version", "event_rules_version", "block:success", "rule_type:ssrf" }), new(new[] { "waf_version", "event_rules_version", "block:success", "rule_type:sql_injection" }), @@ -753,29 +755,29 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "waf_version", "event_rules_version", "block:irrelevant", "rule_type:sql_injection" }), new(new[] { "waf_version", "event_rules_version", "block:irrelevant", "rule_type:command_injection", "rule_variant:shell" }), new(new[] { "waf_version", "event_rules_version", "block:irrelevant", "rule_type:command_injection", "rule_variant:exec" }), - // rasp.timeout, index = 682 + // rasp.timeout, index = 684 new(new[] { "waf_version", "event_rules_version", "rule_type:lfi" }), new(new[] { "waf_version", "event_rules_version", "rule_type:ssrf" }), new(new[] { "waf_version", "event_rules_version", "rule_type:sql_injection" }), new(new[] { "waf_version", "event_rules_version", "rule_type:command_injection", "rule_variant:shell" }), new(new[] { "waf_version", "event_rules_version", "rule_type:command_injection", "rule_variant:exec" }), - // instrum.user_auth.missing_user_id, index = 687 + // instrum.user_auth.missing_user_id, index = 689 new(new[] { "framework:aspnetcore_identity", "event_type:login_success" }), new(new[] { "framework:aspnetcore_identity", "event_type:login_failure" }), new(new[] { "framework:aspnetcore_identity", "event_type:signup" }), new(new[] { "framework:unknown", "event_type:signup" }), - // instrum.user_auth.missing_user_login, index = 691 + // instrum.user_auth.missing_user_login, index = 693 new(new[] { "framework:aspnetcore_identity", "event_type:login_success" }), new(new[] { "framework:aspnetcore_identity", "event_type:login_failure" }), new(new[] { "framework:aspnetcore_identity", "event_type:signup" }), new(new[] { "framework:unknown", "event_type:signup" }), - // sdk.event, index = 695 + // sdk.event, index = 697 new(new[] { "event_type:login_success", "sdk_version:v1" }), new(new[] { "event_type:login_success", "sdk_version:v2" }), new(new[] { "event_type:login_failure", "sdk_version:v1" }), new(new[] { "event_type:login_failure", "sdk_version:v2" }), new(new[] { "event_type:custom", "sdk_version:v1" }), - // executed.source, index = 700 + // executed.source, index = 702 new(new[] { "source_type:http.request.body" }), new(new[] { "source_type:http.request.path" }), new(new[] { "source_type:http.request.parameter.name" }), @@ -790,9 +792,9 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "source_type:http.request.uri" }), new(new[] { "source_type:grpc.request.body" }), new(new[] { "source_type:sql.row.value" }), - // executed.propagation, index = 714 + // executed.propagation, index = 716 new(null), - // executed.sink, index = 715 + // executed.sink, index = 717 new(new[] { "vulnerability_type:none" }), new(new[] { "vulnerability_type:weak_cipher" }), new(new[] { "vulnerability_type:weak_hash" }), @@ -820,9 +822,9 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "vulnerability_type:directory_listing_leak" }), new(new[] { "vulnerability_type:session_timeout" }), new(new[] { "vulnerability_type:email_html_injection" }), - // request.tainted, index = 742 + // request.tainted, index = 744 new(null), - // suppressed.vulnerabilities, index = 743 + // suppressed.vulnerabilities, index = 745 new(new[] { "vulnerability_type:none" }), new(new[] { "vulnerability_type:weak_cipher" }), new(new[] { "vulnerability_type:weak_hash" }), @@ -858,7 +860,7 @@ private static AggregatedMetric[] GetCountBuffer() /// It is equal to the cardinality of the tag combinations (or 1 if there are no tags) /// private static int[] CountEntryCounts { get; } - = new int[]{ 4, 85, 1, 3, 7, 2, 2, 7, 1, 1, 1, 22, 3, 2, 5, 5, 4, 1, 1, 22, 3, 34, 90, 90, 4, 4, 4, 4, 2, 44, 6, 1, 1, 85, 1, 22, 3, 8, 2, 10, 8, 4, 12, 4, 16, 2, 2, 10, 3, 4, 5, 15, 5, 4, 4, 5, 14, 1, 27, 1, 27, }; + = new int[]{ 4, 86, 1, 3, 7, 2, 2, 7, 1, 1, 1, 22, 3, 2, 5, 5, 4, 1, 1, 22, 3, 34, 90, 90, 4, 4, 4, 4, 2, 44, 6, 1, 1, 86, 1, 22, 3, 8, 2, 10, 8, 4, 12, 4, 16, 2, 2, 10, 3, 4, 5, 15, 5, 4, 4, 5, 14, 1, 27, 1, 27, }; public void RecordCountLogCreated(Datadog.Trace.Telemetry.Metrics.MetricTags.LogLevel tag, int increment = 1) { @@ -874,345 +876,345 @@ public void RecordCountSpanCreated(Datadog.Trace.Telemetry.Metrics.MetricTags.In public void RecordCountSpanFinished(int increment = 1) { - Interlocked.Add(ref _buffer.Count[89], increment); + Interlocked.Add(ref _buffer.Count[90], increment); } public void RecordCountSpanEnqueuedForSerialization(Datadog.Trace.Telemetry.Metrics.MetricTags.SpanEnqueueReason tag, int increment = 1) { - var index = 90 + (int)tag; + var index = 91 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountSpanDropped(Datadog.Trace.Telemetry.Metrics.MetricTags.DropReason tag, int increment = 1) { - var index = 93 + (int)tag; + var index = 94 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTraceSegmentCreated(Datadog.Trace.Telemetry.Metrics.MetricTags.TraceContinuation tag, int increment = 1) { - var index = 100 + (int)tag; + var index = 101 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTraceChunkEnqueued(Datadog.Trace.Telemetry.Metrics.MetricTags.TraceChunkEnqueueReason tag, int increment = 1) { - var index = 102 + (int)tag; + var index = 103 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTraceChunkDropped(Datadog.Trace.Telemetry.Metrics.MetricTags.DropReason tag, int increment = 1) { - var index = 104 + (int)tag; + var index = 105 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTraceChunkSent(int increment = 1) { - Interlocked.Add(ref _buffer.Count[111], increment); + Interlocked.Add(ref _buffer.Count[112], increment); } public void RecordCountTraceSegmentsClosed(int increment = 1) { - Interlocked.Add(ref _buffer.Count[112], increment); + Interlocked.Add(ref _buffer.Count[113], increment); } public void RecordCountTraceApiRequests(int increment = 1) { - Interlocked.Add(ref _buffer.Count[113], increment); + Interlocked.Add(ref _buffer.Count[114], increment); } public void RecordCountTraceApiResponses(Datadog.Trace.Telemetry.Metrics.MetricTags.StatusCode tag, int increment = 1) { - var index = 114 + (int)tag; + var index = 115 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTraceApiErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.ApiError tag, int increment = 1) { - var index = 136 + (int)tag; + var index = 137 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTracePartialFlush(Datadog.Trace.Telemetry.Metrics.MetricTags.PartialFlushReason tag, int increment = 1) { - var index = 139 + (int)tag; + var index = 140 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountContextHeaderStyleInjected(Datadog.Trace.Telemetry.Metrics.MetricTags.ContextHeaderStyle tag, int increment = 1) { - var index = 141 + (int)tag; + var index = 142 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountContextHeaderStyleExtracted(Datadog.Trace.Telemetry.Metrics.MetricTags.ContextHeaderStyle tag, int increment = 1) { - var index = 146 + (int)tag; + var index = 147 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountContextHeaderTruncated(Datadog.Trace.Telemetry.Metrics.MetricTags.ContextHeaderTruncationReason tag, int increment = 1) { - var index = 151 + (int)tag; + var index = 152 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountContextHeaderMalformed(Datadog.Trace.Telemetry.Metrics.MetricTags.ContextHeaderMalformed tag, int increment = 1) { - var index = 155 + (int)tag; + var index = 156 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountStatsApiRequests(int increment = 1) { - Interlocked.Add(ref _buffer.Count[156], increment); + Interlocked.Add(ref _buffer.Count[157], increment); } public void RecordCountStatsApiResponses(Datadog.Trace.Telemetry.Metrics.MetricTags.StatusCode tag, int increment = 1) { - var index = 157 + (int)tag; + var index = 158 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountStatsApiErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.ApiError tag, int increment = 1) { - var index = 179 + (int)tag; + var index = 180 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountStatsCollapsedSpans(Datadog.Trace.Telemetry.Metrics.MetricTags.CollapsedStatsFields tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.OversizedStatsFields tag2, int increment = 1) { - var index = 182 + ((int)tag1 * 2) + (int)tag2; + var index = 183 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountOpenTelemetryConfigHiddenByDatadogConfig(Datadog.Trace.Telemetry.Metrics.MetricTags.DatadogConfiguration tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.OpenTelemetryConfiguration tag2, int increment = 1) { - var index = 216 + ((int)tag1 * 10) + (int)tag2; + var index = 217 + ((int)tag1 * 10) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountOpenTelemetryConfigInvalid(Datadog.Trace.Telemetry.Metrics.MetricTags.DatadogConfiguration tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.OpenTelemetryConfiguration tag2, int increment = 1) { - var index = 306 + ((int)tag1 * 10) + (int)tag2; + var index = 307 + ((int)tag1 * 10) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMetricsExportAttempts(Datadog.Trace.Telemetry.Metrics.MetricTags.Protocol tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.MetricEncoding tag2, int increment = 1) { - var index = 396 + ((int)tag1 * 2) + (int)tag2; + var index = 397 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMetricsExportSuccesses(Datadog.Trace.Telemetry.Metrics.MetricTags.Protocol tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.MetricEncoding tag2, int increment = 1) { - var index = 400 + ((int)tag1 * 2) + (int)tag2; + var index = 401 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMetricsExportPartialSuccesses(Datadog.Trace.Telemetry.Metrics.MetricTags.Protocol tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.MetricEncoding tag2, int increment = 1) { - var index = 404 + ((int)tag1 * 2) + (int)tag2; + var index = 405 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMetricsExportFailures(Datadog.Trace.Telemetry.Metrics.MetricTags.Protocol tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.MetricEncoding tag2, int increment = 1) { - var index = 408 + ((int)tag1 * 2) + (int)tag2; + var index = 409 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTelemetryApiRequests(Datadog.Trace.Telemetry.Metrics.MetricTags.TelemetryEndpoint tag, int increment = 1) { - var index = 412 + (int)tag; + var index = 413 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTelemetryApiResponses(Datadog.Trace.Telemetry.Metrics.MetricTags.TelemetryEndpoint tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.StatusCode tag2, int increment = 1) { - var index = 414 + ((int)tag1 * 22) + (int)tag2; + var index = 415 + ((int)tag1 * 22) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTelemetryApiErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.TelemetryEndpoint tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.ApiError tag2, int increment = 1) { - var index = 458 + ((int)tag1 * 3) + (int)tag2; + var index = 459 + ((int)tag1 * 3) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountVersionConflictTracerCreated(int increment = 1) { - Interlocked.Add(ref _buffer.Count[464], increment); + Interlocked.Add(ref _buffer.Count[465], increment); } public void RecordCountUnsupportedCustomInstrumentationServices(int increment = 1) { - Interlocked.Add(ref _buffer.Count[465], increment); + Interlocked.Add(ref _buffer.Count[466], increment); } public void RecordCountDirectLogLogs(Datadog.Trace.Telemetry.Metrics.MetricTags.IntegrationName tag, int increment = 1) { - var index = 466 + (int)tag; + var index = 467 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDirectLogApiRequests(int increment = 1) { - Interlocked.Add(ref _buffer.Count[551], increment); + Interlocked.Add(ref _buffer.Count[553], increment); } public void RecordCountDirectLogApiResponses(Datadog.Trace.Telemetry.Metrics.MetricTags.StatusCode tag, int increment = 1) { - var index = 552 + (int)tag; + var index = 554 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDirectLogApiErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.ApiError tag, int increment = 1) { - var index = 574 + (int)tag; + var index = 576 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerMemoryPressureTransitions(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureState tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureTrigger tag2, int increment = 1) { - var index = 577 + ((int)tag1 * 4) + (int)tag2; + var index = 579 + ((int)tag1 * 4) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerMemoryPressureDisabled(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureDisabledReason tag, int increment = 1) { - var index = 585 + (int)tag; + var index = 587 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerMemoryPressureMemoryUsagePct(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureState tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureMemoryBucket tag2, int increment = 1) { - var index = 587 + ((int)tag1 * 5) + (int)tag2; + var index = 589 + ((int)tag1 * 5) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerMemoryPressureGcActivity(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureState tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureGcBucket tag2, int increment = 1) { - var index = 597 + ((int)tag1 * 4) + (int)tag2; + var index = 599 + ((int)tag1 * 4) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerMemoryPressureDuration(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureDurationBucket tag, int increment = 1) { - var index = 605 + (int)tag; + var index = 607 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerEventsSkipped(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerEventsSkippedReason tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerEventType tag2, int increment = 1) { - var index = 609 + ((int)tag1 * 4) + (int)tag2; + var index = 611 + ((int)tag1 * 4) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerEventsDropped(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerEventsDroppedReason tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerCaptureEventType tag2, int increment = 1) { - var index = 621 + ((int)tag1 * 2) + (int)tag2; + var index = 623 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerCaptureIncomplete(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerCaptureEventType tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerCaptureIncompleteReason tag2, int increment = 1) { - var index = 625 + ((int)tag1 * 8) + (int)tag2; + var index = 627 + ((int)tag1 * 8) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountWafInit(Datadog.Trace.Telemetry.Metrics.MetricTags.WafStatus tag, int increment = 1) { - var index = 641 + (int)tag; + var index = 643 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountWafUpdates(Datadog.Trace.Telemetry.Metrics.MetricTags.WafStatus tag, int increment = 1) { - var index = 643 + (int)tag; + var index = 645 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountWafRequests(Datadog.Trace.Telemetry.Metrics.MetricTags.WafAnalysis tag, int increment = 1) { - var index = 645 + (int)tag; + var index = 647 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountInputTruncated(Datadog.Trace.Telemetry.Metrics.MetricTags.TruncationReason tag, int increment = 1) { - var index = 655 + (int)tag; + var index = 657 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountWafError(Datadog.Trace.Telemetry.Metrics.MetricTags.WafError tag, int increment = 1) { - var index = 658 + (int)tag; + var index = 660 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountRaspRuleEval(Datadog.Trace.Telemetry.Metrics.MetricTags.RaspRuleType tag, int increment = 1) { - var index = 662 + (int)tag; + var index = 664 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountRaspRuleMatch(Datadog.Trace.Telemetry.Metrics.MetricTags.RaspRuleTypeMatch tag, int increment = 1) { - var index = 667 + (int)tag; + var index = 669 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountRaspTimeout(Datadog.Trace.Telemetry.Metrics.MetricTags.RaspRuleType tag, int increment = 1) { - var index = 682 + (int)tag; + var index = 684 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMissingUserId(Datadog.Trace.Telemetry.Metrics.MetricTags.AuthenticationFrameworkWithEventType tag, int increment = 1) { - var index = 687 + (int)tag; + var index = 689 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMissingUserLogin(Datadog.Trace.Telemetry.Metrics.MetricTags.AuthenticationFrameworkWithEventType tag, int increment = 1) { - var index = 691 + (int)tag; + var index = 693 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountUserEventSdk(Datadog.Trace.Telemetry.Metrics.MetricTags.UserEventSdk tag, int increment = 1) { - var index = 695 + (int)tag; + var index = 697 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountIastExecutedSources(Datadog.Trace.Telemetry.Metrics.MetricTags.IastSourceType tag, int increment = 1) { - var index = 700 + (int)tag; + var index = 702 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountIastExecutedPropagations(int increment = 1) { - Interlocked.Add(ref _buffer.Count[714], increment); + Interlocked.Add(ref _buffer.Count[716], increment); } public void RecordCountIastExecutedSinks(Datadog.Trace.Telemetry.Metrics.MetricTags.IastVulnerabilityType tag, int increment = 1) { - var index = 715 + (int)tag; + var index = 717 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountIastRequestTainted(int increment = 1) { - Interlocked.Add(ref _buffer.Count[742], increment); + Interlocked.Add(ref _buffer.Count[744], increment); } public void RecordCountIastSuppressedVulnerabilities(Datadog.Trace.Telemetry.Metrics.MetricTags.IastVulnerabilityType tag, int increment = 1) { - var index = 743 + (int)tag; + var index = 745 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } } \ No newline at end of file diff --git a/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_CountShared.g.cs b/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_CountShared.g.cs index 82355f89f551..52bbe9a697c4 100644 --- a/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_CountShared.g.cs +++ b/tracer/src/Datadog.Trace/Generated/net461/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_CountShared.g.cs @@ -11,7 +11,7 @@ namespace Datadog.Trace.Telemetry; internal sealed partial class MetricsTelemetryCollector { - private const int CountSharedLength = 340; + private const int CountSharedLength = 344; /// /// Creates the buffer for the values. @@ -356,6 +356,10 @@ private static AggregatedMetric[] GetCountSharedBuffer() new(new[] { "integration_name:hangfire", "error_type:invoker" }), new(new[] { "integration_name:hangfire", "error_type:execution" }), new(new[] { "integration_name:hangfire", "error_type:missing_member" }), + new(new[] { "integration_name:quartz", "error_type:duck_typing" }), + new(new[] { "integration_name:quartz", "error_type:invoker" }), + new(new[] { "integration_name:quartz", "error_type:execution" }), + new(new[] { "integration_name:quartz", "error_type:missing_member" }), new(new[] { "integration_name:serverlesscompat", "error_type:duck_typing" }), new(new[] { "integration_name:serverlesscompat", "error_type:invoker" }), new(new[] { "integration_name:serverlesscompat", "error_type:execution" }), @@ -368,7 +372,7 @@ private static AggregatedMetric[] GetCountSharedBuffer() /// It is equal to the cardinality of the tag combinations (or 1 if there are no tags) /// private static int[] CountSharedEntryCounts { get; } - = new int[]{ 340, }; + = new int[]{ 344, }; public void RecordCountSharedIntegrationsError(Datadog.Trace.Telemetry.Metrics.MetricTags.IntegrationName tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.InstrumentationError tag2, int increment = 1) { diff --git a/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationIdExtensions_EnumExtensions.g.cs b/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationIdExtensions_EnumExtensions.g.cs index cfc3e86ece7b..1e7a3ce2ce2c 100644 --- a/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationIdExtensions_EnumExtensions.g.cs +++ b/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationIdExtensions_EnumExtensions.g.cs @@ -17,7 +17,7 @@ internal static partial class IntegrationIdExtensions /// The number of members in the enum. /// This is a non-distinct count of defined names. /// - public const int Length = 80; + public const int Length = 81; /// /// Returns the string representation of the value. @@ -109,6 +109,7 @@ public static string ToStringFast(this Datadog.Trace.Configuration.IntegrationId Datadog.Trace.Configuration.IntegrationId.DatadogTraceVersionConflict => nameof(Datadog.Trace.Configuration.IntegrationId.DatadogTraceVersionConflict), Datadog.Trace.Configuration.IntegrationId.Hangfire => nameof(Datadog.Trace.Configuration.IntegrationId.Hangfire), Datadog.Trace.Configuration.IntegrationId.OpenFeature => nameof(Datadog.Trace.Configuration.IntegrationId.OpenFeature), + Datadog.Trace.Configuration.IntegrationId.Quartz => nameof(Datadog.Trace.Configuration.IntegrationId.Quartz), Datadog.Trace.Configuration.IntegrationId.ServerlessCompat => nameof(Datadog.Trace.Configuration.IntegrationId.ServerlessCompat), _ => value.ToString(), }; @@ -202,6 +203,7 @@ public static Datadog.Trace.Configuration.IntegrationId[] GetValues() Datadog.Trace.Configuration.IntegrationId.DatadogTraceVersionConflict, Datadog.Trace.Configuration.IntegrationId.Hangfire, Datadog.Trace.Configuration.IntegrationId.OpenFeature, + Datadog.Trace.Configuration.IntegrationId.Quartz, Datadog.Trace.Configuration.IntegrationId.ServerlessCompat, }; @@ -295,6 +297,7 @@ public static string[] GetNames() nameof(Datadog.Trace.Configuration.IntegrationId.DatadogTraceVersionConflict), nameof(Datadog.Trace.Configuration.IntegrationId.Hangfire), nameof(Datadog.Trace.Configuration.IntegrationId.OpenFeature), + nameof(Datadog.Trace.Configuration.IntegrationId.Quartz), nameof(Datadog.Trace.Configuration.IntegrationId.ServerlessCompat), }; } \ No newline at end of file diff --git a/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationNameToKeys.g.cs b/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationNameToKeys.g.cs index 1082a62da2ba..d5375990de0a 100644 --- a/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationNameToKeys.g.cs +++ b/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationNameToKeys.g.cs @@ -259,6 +259,9 @@ public static string[] GetAllIntegrationEnabledKeys() => "DD_TRACE_OPENFEATURE_ENABLED", "DD_TRACE_OpenFeature_ENABLED", "DD_OpenFeature_ENABLED", "DD_TRACE_OPENFEATURE_ANALYTICS_ENABLED", "DD_TRACE_OpenFeature_ANALYTICS_ENABLED", "DD_OpenFeature_ANALYTICS_ENABLED", "DD_TRACE_OPENFEATURE_ANALYTICS_SAMPLE_RATE", "DD_TRACE_OpenFeature_ANALYTICS_SAMPLE_RATE", "DD_OpenFeature_ANALYTICS_SAMPLE_RATE", + "DD_TRACE_QUARTZ_ENABLED", "DD_TRACE_Quartz_ENABLED", "DD_Quartz_ENABLED", + "DD_TRACE_QUARTZ_ANALYTICS_ENABLED", "DD_TRACE_Quartz_ANALYTICS_ENABLED", "DD_Quartz_ANALYTICS_ENABLED", + "DD_TRACE_QUARTZ_ANALYTICS_SAMPLE_RATE", "DD_TRACE_Quartz_ANALYTICS_SAMPLE_RATE", "DD_Quartz_ANALYTICS_SAMPLE_RATE", "DD_TRACE_SERVERLESSCOMPAT_ENABLED", "DD_TRACE_ServerlessCompat_ENABLED", "DD_ServerlessCompat_ENABLED", "DD_TRACE_SERVERLESSCOMPAT_ANALYTICS_ENABLED", "DD_TRACE_ServerlessCompat_ANALYTICS_ENABLED", "DD_ServerlessCompat_ANALYTICS_ENABLED", "DD_TRACE_SERVERLESSCOMPAT_ANALYTICS_SAMPLE_RATE", "DD_TRACE_ServerlessCompat_ANALYTICS_SAMPLE_RATE", "DD_ServerlessCompat_ANALYTICS_SAMPLE_RATE", @@ -351,6 +354,7 @@ public static System.Collections.Generic.KeyValuePair GetInteg "DatadogTraceVersionConflict" => new("DD_TRACE_DATADOGTRACEVERSIONCONFLICT_ENABLED", ["DD_TRACE_DatadogTraceVersionConflict_ENABLED", "DD_DatadogTraceVersionConflict_ENABLED"]), "Hangfire" => new("DD_TRACE_HANGFIRE_ENABLED", ["DD_TRACE_Hangfire_ENABLED", "DD_Hangfire_ENABLED"]), "OpenFeature" => new("DD_TRACE_OPENFEATURE_ENABLED", ["DD_TRACE_OpenFeature_ENABLED", "DD_OpenFeature_ENABLED"]), + "Quartz" => new("DD_TRACE_QUARTZ_ENABLED", ["DD_TRACE_Quartz_ENABLED", "DD_Quartz_ENABLED"]), "ServerlessCompat" => new("DD_TRACE_SERVERLESSCOMPAT_ENABLED", ["DD_TRACE_ServerlessCompat_ENABLED", "DD_ServerlessCompat_ENABLED"]), _ => GetIntegrationEnabledKeysFallback(integrationName) // we should never get here }; @@ -443,6 +447,7 @@ public static System.Collections.Generic.KeyValuePair GetInteg "DatadogTraceVersionConflict" => new("DD_TRACE_DATADOGTRACEVERSIONCONFLICT_ANALYTICS_ENABLED", ["DD_TRACE_DatadogTraceVersionConflict_ANALYTICS_ENABLED", "DD_DatadogTraceVersionConflict_ANALYTICS_ENABLED"]), "Hangfire" => new("DD_TRACE_HANGFIRE_ANALYTICS_ENABLED", ["DD_TRACE_Hangfire_ANALYTICS_ENABLED", "DD_Hangfire_ANALYTICS_ENABLED"]), "OpenFeature" => new("DD_TRACE_OPENFEATURE_ANALYTICS_ENABLED", ["DD_TRACE_OpenFeature_ANALYTICS_ENABLED", "DD_OpenFeature_ANALYTICS_ENABLED"]), + "Quartz" => new("DD_TRACE_QUARTZ_ANALYTICS_ENABLED", ["DD_TRACE_Quartz_ANALYTICS_ENABLED", "DD_Quartz_ANALYTICS_ENABLED"]), "ServerlessCompat" => new("DD_TRACE_SERVERLESSCOMPAT_ANALYTICS_ENABLED", ["DD_TRACE_ServerlessCompat_ANALYTICS_ENABLED", "DD_ServerlessCompat_ANALYTICS_ENABLED"]), _ => GetIntegrationAnalyticsEnabledKeysFallback(integrationName) // we should never get here }; @@ -535,6 +540,7 @@ public static System.Collections.Generic.KeyValuePair GetInteg "DatadogTraceVersionConflict" => new("DD_TRACE_DATADOGTRACEVERSIONCONFLICT_ANALYTICS_SAMPLE_RATE", ["DD_TRACE_DatadogTraceVersionConflict_ANALYTICS_SAMPLE_RATE", "DD_DatadogTraceVersionConflict_ANALYTICS_SAMPLE_RATE"]), "Hangfire" => new("DD_TRACE_HANGFIRE_ANALYTICS_SAMPLE_RATE", ["DD_TRACE_Hangfire_ANALYTICS_SAMPLE_RATE", "DD_Hangfire_ANALYTICS_SAMPLE_RATE"]), "OpenFeature" => new("DD_TRACE_OPENFEATURE_ANALYTICS_SAMPLE_RATE", ["DD_TRACE_OpenFeature_ANALYTICS_SAMPLE_RATE", "DD_OpenFeature_ANALYTICS_SAMPLE_RATE"]), + "Quartz" => new("DD_TRACE_QUARTZ_ANALYTICS_SAMPLE_RATE", ["DD_TRACE_Quartz_ANALYTICS_SAMPLE_RATE", "DD_Quartz_ANALYTICS_SAMPLE_RATE"]), "ServerlessCompat" => new("DD_TRACE_SERVERLESSCOMPAT_ANALYTICS_SAMPLE_RATE", ["DD_TRACE_ServerlessCompat_ANALYTICS_SAMPLE_RATE", "DD_ServerlessCompat_ANALYTICS_SAMPLE_RATE"]), _ => GetIntegrationAnalyticsSampleRateKeysFallback(integrationName) // we should never get here }; diff --git a/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountShared.g.cs b/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountShared.g.cs index 074a939c1ce9..3eee24bd10a9 100644 --- a/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountShared.g.cs +++ b/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountShared.g.cs @@ -11,7 +11,7 @@ namespace Datadog.Trace.Telemetry; internal sealed partial class CiVisibilityMetricsTelemetryCollector { - private const int CountSharedLength = 340; + private const int CountSharedLength = 344; /// /// Creates the buffer for the values. @@ -356,6 +356,10 @@ private static AggregatedMetric[] GetCountSharedBuffer() new(new[] { "integration_name:hangfire", "error_type:invoker" }), new(new[] { "integration_name:hangfire", "error_type:execution" }), new(new[] { "integration_name:hangfire", "error_type:missing_member" }), + new(new[] { "integration_name:quartz", "error_type:duck_typing" }), + new(new[] { "integration_name:quartz", "error_type:invoker" }), + new(new[] { "integration_name:quartz", "error_type:execution" }), + new(new[] { "integration_name:quartz", "error_type:missing_member" }), new(new[] { "integration_name:serverlesscompat", "error_type:duck_typing" }), new(new[] { "integration_name:serverlesscompat", "error_type:invoker" }), new(new[] { "integration_name:serverlesscompat", "error_type:execution" }), @@ -368,7 +372,7 @@ private static AggregatedMetric[] GetCountSharedBuffer() /// It is equal to the cardinality of the tag combinations (or 1 if there are no tags) /// private static int[] CountSharedEntryCounts { get; } - = new int[]{ 340, }; + = new int[]{ 344, }; public void RecordCountSharedIntegrationsError(Datadog.Trace.Telemetry.Metrics.MetricTags.IntegrationName tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.InstrumentationError tag2, int increment = 1) { diff --git a/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_Count.g.cs b/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_Count.g.cs index ea54deed1d51..012f230b22c9 100644 --- a/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_Count.g.cs +++ b/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_Count.g.cs @@ -11,7 +11,7 @@ namespace Datadog.Trace.Telemetry; internal sealed partial class MetricsTelemetryCollector { - private const int CountLength = 770; + private const int CountLength = 772; /// /// Creates the buffer for the values. @@ -109,14 +109,15 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "integration_name:emailhtmlinjection" }), new(new[] { "integration_name:protobuf" }), new(new[] { "integration_name:hangfire" }), + new(new[] { "integration_name:quartz" }), new(new[] { "integration_name:serverlesscompat" }), - // spans_finished, index = 89 + // spans_finished, index = 90 new(null), - // spans_enqueued_for_serialization, index = 90 + // spans_enqueued_for_serialization, index = 91 new(new[] { "reason:p0_keep" }), new(new[] { "reason:single_span_sampling" }), new(new[] { "reason:default" }), - // spans_dropped, index = 93 + // spans_dropped, index = 94 new(new[] { "reason:p0_drop" }), new(new[] { "reason:overfull_buffer" }), new(new[] { "reason:trace_too_large" }), @@ -124,13 +125,13 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "reason:api_error" }), new(new[] { "reason:trace_filter" }), new(new[] { "reason:buffer_locked" }), - // trace_segments_created, index = 100 + // trace_segments_created, index = 101 new(new[] { "new_continued:new" }), new(new[] { "new_continued:continued" }), - // trace_chunks_enqueued_for_serialization, index = 102 + // trace_chunks_enqueued_for_serialization, index = 103 new(new[] { "reason:p0_keep" }), new(new[] { "reason:default" }), - // trace_chunks_dropped, index = 104 + // trace_chunks_dropped, index = 105 new(new[] { "reason:p0_drop" }), new(new[] { "reason:overfull_buffer" }), new(new[] { "reason:trace_too_large" }), @@ -138,13 +139,13 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "reason:api_error" }), new(new[] { "reason:trace_filter" }), new(new[] { "reason:buffer_locked" }), - // trace_chunks_sent, index = 111 + // trace_chunks_sent, index = 112 new(null), - // trace_segments_closed, index = 112 + // trace_segments_closed, index = 113 new(null), - // trace_api.requests, index = 113 + // trace_api.requests, index = 114 new(null), - // trace_api.responses, index = 114 + // trace_api.responses, index = 115 new(new[] { "status_code:200" }), new(new[] { "status_code:201" }), new(new[] { "status_code:202" }), @@ -167,35 +168,35 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "status_code:503" }), new(new[] { "status_code:504" }), new(new[] { "status_code:5xx" }), - // trace_api.errors, index = 136 + // trace_api.errors, index = 137 new(new[] { "type:timeout" }), new(new[] { "type:network" }), new(new[] { "type:status_code" }), - // trace_partial_flush.count, index = 139 + // trace_partial_flush.count, index = 140 new(new[] { "reason:large_trace" }), new(new[] { "reason:single_span_ingestion" }), - // context_header_style.injected, index = 141 + // context_header_style.injected, index = 142 new(new[] { "header_style:tracecontext" }), new(new[] { "header_style:datadog" }), new(new[] { "header_style:b3multi" }), new(new[] { "header_style:b3single" }), new(new[] { "header_style:baggage" }), - // context_header_style.extracted, index = 146 + // context_header_style.extracted, index = 147 new(new[] { "header_style:tracecontext" }), new(new[] { "header_style:datadog" }), new(new[] { "header_style:b3multi" }), new(new[] { "header_style:b3single" }), new(new[] { "header_style:baggage" }), - // context_header.truncated, index = 151 + // context_header.truncated, index = 152 new(new[] { "truncation_reason:baggage_item_count_exceeded" }), new(new[] { "truncation_reason:baggage_byte_count_exceeded" }), new(new[] { "truncation_reason:baggage_extract_item_exceeded" }), new(new[] { "truncation_reason:baggage_extract_byte_exceeded" }), - // context_header_style.malformed, index = 155 + // context_header_style.malformed, index = 156 new(new[] { "header_style:baggage" }), - // stats_api.requests, index = 156 + // stats_api.requests, index = 157 new(null), - // stats_api.responses, index = 157 + // stats_api.responses, index = 158 new(new[] { "status_code:200" }), new(new[] { "status_code:201" }), new(new[] { "status_code:202" }), @@ -218,11 +219,11 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "status_code:503" }), new(new[] { "status_code:504" }), new(new[] { "status_code:5xx" }), - // stats_api.errors, index = 179 + // stats_api.errors, index = 180 new(new[] { "type:timeout" }), new(new[] { "type:network" }), new(new[] { "type:status_code" }), - // stats_collapsed_spans, index = 182 + // stats_collapsed_spans, index = 183 new(null), new(new[] { "oversized:additional_metric_tags" }), new(new[] { "collapsed:whole_key" }), @@ -257,7 +258,7 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "collapsed:http_endpoint", "collapsed:peer_tags", "collapsed:additional_metric_tags", "oversized:additional_metric_tags" }), new(new[] { "collapsed:resource", "collapsed:http_endpoint", "collapsed:peer_tags", "collapsed:additional_metric_tags" }), new(new[] { "collapsed:resource", "collapsed:http_endpoint", "collapsed:peer_tags", "collapsed:additional_metric_tags", "oversized:additional_metric_tags" }), - // otel.env.hiding, index = 216 + // otel.env.hiding, index = 217 new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_log_level" }), new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_metrics_exporter" }), new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_propagators" }), @@ -348,7 +349,7 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "config_datadog:unknown", "config_opentelemetry:otel_traces_sampler" }), new(new[] { "config_datadog:unknown", "config_opentelemetry:otel_traces_sampler_arg" }), new(new[] { "config_datadog:unknown", "config_opentelemetry:unknown" }), - // otel.env.invalid, index = 306 + // otel.env.invalid, index = 307 new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_log_level" }), new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_metrics_exporter" }), new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_propagators" }), @@ -439,30 +440,30 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "config_datadog:unknown", "config_opentelemetry:otel_traces_sampler" }), new(new[] { "config_datadog:unknown", "config_opentelemetry:otel_traces_sampler_arg" }), new(new[] { "config_datadog:unknown", "config_opentelemetry:unknown" }), - // otel.metrics_export_attempts, index = 396 + // otel.metrics_export_attempts, index = 397 new(new[] { "protocol:grpc", "encoding:protobuf" }), new(new[] { "protocol:grpc", "encoding:json" }), new(new[] { "protocol:http", "encoding:protobuf" }), new(new[] { "protocol:http", "encoding:json" }), - // otel.metrics_export_successes, index = 400 + // otel.metrics_export_successes, index = 401 new(new[] { "protocol:grpc", "encoding:protobuf" }), new(new[] { "protocol:grpc", "encoding:json" }), new(new[] { "protocol:http", "encoding:protobuf" }), new(new[] { "protocol:http", "encoding:json" }), - // otel.metrics_export_partial_successes, index = 404 + // otel.metrics_export_partial_successes, index = 405 new(new[] { "protocol:grpc", "encoding:protobuf" }), new(new[] { "protocol:grpc", "encoding:json" }), new(new[] { "protocol:http", "encoding:protobuf" }), new(new[] { "protocol:http", "encoding:json" }), - // otel.metrics_export_failures, index = 408 + // otel.metrics_export_failures, index = 409 new(new[] { "protocol:grpc", "encoding:protobuf" }), new(new[] { "protocol:grpc", "encoding:json" }), new(new[] { "protocol:http", "encoding:protobuf" }), new(new[] { "protocol:http", "encoding:json" }), - // telemetry_api.requests, index = 412 + // telemetry_api.requests, index = 413 new(new[] { "endpoint:agent" }), new(new[] { "endpoint:agentless" }), - // telemetry_api.responses, index = 414 + // telemetry_api.responses, index = 415 new(new[] { "endpoint:agent", "status_code:200" }), new(new[] { "endpoint:agent", "status_code:201" }), new(new[] { "endpoint:agent", "status_code:202" }), @@ -507,18 +508,18 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "endpoint:agentless", "status_code:503" }), new(new[] { "endpoint:agentless", "status_code:504" }), new(new[] { "endpoint:agentless", "status_code:5xx" }), - // telemetry_api.errors, index = 458 + // telemetry_api.errors, index = 459 new(new[] { "endpoint:agent", "type:timeout" }), new(new[] { "endpoint:agent", "type:network" }), new(new[] { "endpoint:agent", "type:status_code" }), new(new[] { "endpoint:agentless", "type:timeout" }), new(new[] { "endpoint:agentless", "type:network" }), new(new[] { "endpoint:agentless", "type:status_code" }), - // version_conflict_tracers_created, index = 464 + // version_conflict_tracers_created, index = 465 new(null), - // unsupported_custom_instrumentation_services, index = 465 + // unsupported_custom_instrumentation_services, index = 466 new(null), - // direct_log_logs, index = 466 + // direct_log_logs, index = 467 new(new[] { "integration_name:datadog" }), new(new[] { "integration_name:opentracing" }), new(new[] { "integration_name:version_conflict" }), @@ -603,10 +604,11 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "integration_name:emailhtmlinjection" }), new(new[] { "integration_name:protobuf" }), new(new[] { "integration_name:hangfire" }), + new(new[] { "integration_name:quartz" }), new(new[] { "integration_name:serverlesscompat" }), - // direct_log_api.requests, index = 551 + // direct_log_api.requests, index = 553 new(null), - // direct_log_api.responses, index = 552 + // direct_log_api.responses, index = 554 new(new[] { "status_code:200" }), new(new[] { "status_code:201" }), new(new[] { "status_code:202" }), @@ -629,11 +631,11 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "status_code:503" }), new(new[] { "status_code:504" }), new(new[] { "status_code:5xx" }), - // direct_log_api.errors, index = 574 + // direct_log_api.errors, index = 576 new(new[] { "type:timeout" }), new(new[] { "type:network" }), new(new[] { "type:status_code" }), - // memory_pressure.transitions, index = 577 + // memory_pressure.transitions, index = 579 new(new[] { "state:enter", "trigger:none" }), new(new[] { "state:enter", "trigger:memory" }), new(new[] { "state:enter", "trigger:gc" }), @@ -642,10 +644,10 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "state:exit", "trigger:memory" }), new(new[] { "state:exit", "trigger:gc" }), new(new[] { "state:exit", "trigger:both" }), - // memory_pressure.disabled, index = 585 + // memory_pressure.disabled, index = 587 new(new[] { "reason:no_signals" }), new(new[] { "reason:error" }), - // memory_pressure.memory_usage_pct, index = 587 + // memory_pressure.memory_usage_pct, index = 589 new(new[] { "state:enter", "bucket:lt_70" }), new(new[] { "state:enter", "bucket:70_80" }), new(new[] { "state:enter", "bucket:80_85" }), @@ -656,7 +658,7 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "state:exit", "bucket:80_85" }), new(new[] { "state:exit", "bucket:85_90" }), new(new[] { "state:exit", "bucket:gte_90" }), - // memory_pressure.gc_activity, index = 597 + // memory_pressure.gc_activity, index = 599 new(new[] { "state:enter", "bucket:lt_1" }), new(new[] { "state:enter", "bucket:1_2" }), new(new[] { "state:enter", "bucket:2_5" }), @@ -665,12 +667,12 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "state:exit", "bucket:1_2" }), new(new[] { "state:exit", "bucket:2_5" }), new(new[] { "state:exit", "bucket:gte_5" }), - // memory_pressure.duration, index = 605 + // memory_pressure.duration, index = 607 new(new[] { "bucket:lt_1s" }), new(new[] { "bucket:1_5s" }), new(new[] { "bucket:5_30s" }), new(new[] { "bucket:gte_30s" }), - // events.skipped, index = 609 + // events.skipped, index = 611 new(new[] { "reason:rateLimitGlobal", "event_type:snapshot" }), new(new[] { "reason:rateLimitGlobal", "event_type:log" }), new(new[] { "reason:rateLimitGlobal", "event_type:metric" }), @@ -683,12 +685,12 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "reason:evaluationTimeout", "event_type:log" }), new(new[] { "reason:evaluationTimeout", "event_type:metric" }), new(new[] { "reason:evaluationTimeout", "event_type:span" }), - // events.dropped, index = 621 + // events.dropped, index = 623 new(new[] { "reason:queueFull", "event_type:snapshot" }), new(new[] { "reason:queueFull", "event_type:log" }), new(new[] { "reason:payloadTooLarge", "event_type:snapshot" }), new(new[] { "reason:payloadTooLarge", "event_type:log" }), - // capture.incomplete, index = 625 + // capture.incomplete, index = 627 new(new[] { "event_type:snapshot", "reason:runtimeError" }), new(new[] { "event_type:snapshot", "reason:timeout" }), new(new[] { "event_type:snapshot", "reason:depth" }), @@ -705,13 +707,13 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "event_type:log", "reason:stringLength" }), new(new[] { "event_type:log", "reason:payloadTooLarge" }), new(new[] { "event_type:log", "reason:other" }), - // waf.init, index = 641 + // waf.init, index = 643 new(new[] { "waf_version", "event_rules_version", "success:true" }), new(new[] { "waf_version", "event_rules_version", "success:false" }), - // waf.updates, index = 643 + // waf.updates, index = 645 new(new[] { "waf_version", "event_rules_version", "success:true" }), new(new[] { "waf_version", "event_rules_version", "success:false" }), - // waf.requests, index = 645 + // waf.requests, index = 647 new(new[] { "waf_version", "event_rules_version", "rule_triggered:false", "request_blocked:false", "waf_timeout:false", "block_failure:false", "rate_limited:false", "input_truncated:false", "waf_error:false" }), new(new[] { "waf_version", "event_rules_version", "rule_triggered:true", "request_blocked:false", "waf_timeout:false", "block_failure:false", "rate_limited:false", "input_truncated:false", "waf_error:false" }), new(new[] { "waf_version", "event_rules_version", "rule_triggered:true", "request_blocked:true", "waf_timeout:false", "block_failure:false", "rate_limited:false", "input_truncated:false", "waf_error:false" }), @@ -722,22 +724,22 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "waf_version", "event_rules_version", "rule_triggered:false", "request_blocked:false", "waf_timeout:true", "block_failure:false", "rate_limited:false", "input_truncated:true", "waf_error:false" }), new(new[] { "waf_version", "event_rules_version", "rule_triggered:false", "request_blocked:false", "waf_timeout:false", "block_failure:false", "rate_limited:false", "input_truncated:false", "waf_error:true" }), new(new[] { "waf_version", "event_rules_version", "rule_triggered:false", "request_blocked:false", "waf_timeout:false", "block_failure:false", "rate_limited:false", "input_truncated:true", "waf_error:true" }), - // waf.input_truncated, index = 655 + // waf.input_truncated, index = 657 new(new[] { "truncation_reason:string_too_long" }), new(new[] { "truncation_reason:list_or_map_too_large" }), new(new[] { "truncation_reason:object_too_deep" }), - // waf.error, index = 658 + // waf.error, index = 660 new(new[] { "waf_version", "event_rules_version", "waf_error:-127" }), new(new[] { "waf_version", "event_rules_version", "waf_error:-3" }), new(new[] { "waf_version", "event_rules_version", "waf_error:-2" }), new(new[] { "waf_version", "event_rules_version", "waf_error:-1" }), - // rasp.rule.eval, index = 662 + // rasp.rule.eval, index = 664 new(new[] { "waf_version", "event_rules_version", "rule_type:lfi" }), new(new[] { "waf_version", "event_rules_version", "rule_type:ssrf" }), new(new[] { "waf_version", "event_rules_version", "rule_type:sql_injection" }), new(new[] { "waf_version", "event_rules_version", "rule_type:command_injection", "rule_variant:shell" }), new(new[] { "waf_version", "event_rules_version", "rule_type:command_injection", "rule_variant:exec" }), - // rasp.rule.match, index = 667 + // rasp.rule.match, index = 669 new(new[] { "waf_version", "event_rules_version", "block:success", "rule_type:lfi" }), new(new[] { "waf_version", "event_rules_version", "block:success", "rule_type:ssrf" }), new(new[] { "waf_version", "event_rules_version", "block:success", "rule_type:sql_injection" }), @@ -753,29 +755,29 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "waf_version", "event_rules_version", "block:irrelevant", "rule_type:sql_injection" }), new(new[] { "waf_version", "event_rules_version", "block:irrelevant", "rule_type:command_injection", "rule_variant:shell" }), new(new[] { "waf_version", "event_rules_version", "block:irrelevant", "rule_type:command_injection", "rule_variant:exec" }), - // rasp.timeout, index = 682 + // rasp.timeout, index = 684 new(new[] { "waf_version", "event_rules_version", "rule_type:lfi" }), new(new[] { "waf_version", "event_rules_version", "rule_type:ssrf" }), new(new[] { "waf_version", "event_rules_version", "rule_type:sql_injection" }), new(new[] { "waf_version", "event_rules_version", "rule_type:command_injection", "rule_variant:shell" }), new(new[] { "waf_version", "event_rules_version", "rule_type:command_injection", "rule_variant:exec" }), - // instrum.user_auth.missing_user_id, index = 687 + // instrum.user_auth.missing_user_id, index = 689 new(new[] { "framework:aspnetcore_identity", "event_type:login_success" }), new(new[] { "framework:aspnetcore_identity", "event_type:login_failure" }), new(new[] { "framework:aspnetcore_identity", "event_type:signup" }), new(new[] { "framework:unknown", "event_type:signup" }), - // instrum.user_auth.missing_user_login, index = 691 + // instrum.user_auth.missing_user_login, index = 693 new(new[] { "framework:aspnetcore_identity", "event_type:login_success" }), new(new[] { "framework:aspnetcore_identity", "event_type:login_failure" }), new(new[] { "framework:aspnetcore_identity", "event_type:signup" }), new(new[] { "framework:unknown", "event_type:signup" }), - // sdk.event, index = 695 + // sdk.event, index = 697 new(new[] { "event_type:login_success", "sdk_version:v1" }), new(new[] { "event_type:login_success", "sdk_version:v2" }), new(new[] { "event_type:login_failure", "sdk_version:v1" }), new(new[] { "event_type:login_failure", "sdk_version:v2" }), new(new[] { "event_type:custom", "sdk_version:v1" }), - // executed.source, index = 700 + // executed.source, index = 702 new(new[] { "source_type:http.request.body" }), new(new[] { "source_type:http.request.path" }), new(new[] { "source_type:http.request.parameter.name" }), @@ -790,9 +792,9 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "source_type:http.request.uri" }), new(new[] { "source_type:grpc.request.body" }), new(new[] { "source_type:sql.row.value" }), - // executed.propagation, index = 714 + // executed.propagation, index = 716 new(null), - // executed.sink, index = 715 + // executed.sink, index = 717 new(new[] { "vulnerability_type:none" }), new(new[] { "vulnerability_type:weak_cipher" }), new(new[] { "vulnerability_type:weak_hash" }), @@ -820,9 +822,9 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "vulnerability_type:directory_listing_leak" }), new(new[] { "vulnerability_type:session_timeout" }), new(new[] { "vulnerability_type:email_html_injection" }), - // request.tainted, index = 742 + // request.tainted, index = 744 new(null), - // suppressed.vulnerabilities, index = 743 + // suppressed.vulnerabilities, index = 745 new(new[] { "vulnerability_type:none" }), new(new[] { "vulnerability_type:weak_cipher" }), new(new[] { "vulnerability_type:weak_hash" }), @@ -858,7 +860,7 @@ private static AggregatedMetric[] GetCountBuffer() /// It is equal to the cardinality of the tag combinations (or 1 if there are no tags) /// private static int[] CountEntryCounts { get; } - = new int[]{ 4, 85, 1, 3, 7, 2, 2, 7, 1, 1, 1, 22, 3, 2, 5, 5, 4, 1, 1, 22, 3, 34, 90, 90, 4, 4, 4, 4, 2, 44, 6, 1, 1, 85, 1, 22, 3, 8, 2, 10, 8, 4, 12, 4, 16, 2, 2, 10, 3, 4, 5, 15, 5, 4, 4, 5, 14, 1, 27, 1, 27, }; + = new int[]{ 4, 86, 1, 3, 7, 2, 2, 7, 1, 1, 1, 22, 3, 2, 5, 5, 4, 1, 1, 22, 3, 34, 90, 90, 4, 4, 4, 4, 2, 44, 6, 1, 1, 86, 1, 22, 3, 8, 2, 10, 8, 4, 12, 4, 16, 2, 2, 10, 3, 4, 5, 15, 5, 4, 4, 5, 14, 1, 27, 1, 27, }; public void RecordCountLogCreated(Datadog.Trace.Telemetry.Metrics.MetricTags.LogLevel tag, int increment = 1) { @@ -874,345 +876,345 @@ public void RecordCountSpanCreated(Datadog.Trace.Telemetry.Metrics.MetricTags.In public void RecordCountSpanFinished(int increment = 1) { - Interlocked.Add(ref _buffer.Count[89], increment); + Interlocked.Add(ref _buffer.Count[90], increment); } public void RecordCountSpanEnqueuedForSerialization(Datadog.Trace.Telemetry.Metrics.MetricTags.SpanEnqueueReason tag, int increment = 1) { - var index = 90 + (int)tag; + var index = 91 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountSpanDropped(Datadog.Trace.Telemetry.Metrics.MetricTags.DropReason tag, int increment = 1) { - var index = 93 + (int)tag; + var index = 94 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTraceSegmentCreated(Datadog.Trace.Telemetry.Metrics.MetricTags.TraceContinuation tag, int increment = 1) { - var index = 100 + (int)tag; + var index = 101 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTraceChunkEnqueued(Datadog.Trace.Telemetry.Metrics.MetricTags.TraceChunkEnqueueReason tag, int increment = 1) { - var index = 102 + (int)tag; + var index = 103 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTraceChunkDropped(Datadog.Trace.Telemetry.Metrics.MetricTags.DropReason tag, int increment = 1) { - var index = 104 + (int)tag; + var index = 105 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTraceChunkSent(int increment = 1) { - Interlocked.Add(ref _buffer.Count[111], increment); + Interlocked.Add(ref _buffer.Count[112], increment); } public void RecordCountTraceSegmentsClosed(int increment = 1) { - Interlocked.Add(ref _buffer.Count[112], increment); + Interlocked.Add(ref _buffer.Count[113], increment); } public void RecordCountTraceApiRequests(int increment = 1) { - Interlocked.Add(ref _buffer.Count[113], increment); + Interlocked.Add(ref _buffer.Count[114], increment); } public void RecordCountTraceApiResponses(Datadog.Trace.Telemetry.Metrics.MetricTags.StatusCode tag, int increment = 1) { - var index = 114 + (int)tag; + var index = 115 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTraceApiErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.ApiError tag, int increment = 1) { - var index = 136 + (int)tag; + var index = 137 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTracePartialFlush(Datadog.Trace.Telemetry.Metrics.MetricTags.PartialFlushReason tag, int increment = 1) { - var index = 139 + (int)tag; + var index = 140 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountContextHeaderStyleInjected(Datadog.Trace.Telemetry.Metrics.MetricTags.ContextHeaderStyle tag, int increment = 1) { - var index = 141 + (int)tag; + var index = 142 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountContextHeaderStyleExtracted(Datadog.Trace.Telemetry.Metrics.MetricTags.ContextHeaderStyle tag, int increment = 1) { - var index = 146 + (int)tag; + var index = 147 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountContextHeaderTruncated(Datadog.Trace.Telemetry.Metrics.MetricTags.ContextHeaderTruncationReason tag, int increment = 1) { - var index = 151 + (int)tag; + var index = 152 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountContextHeaderMalformed(Datadog.Trace.Telemetry.Metrics.MetricTags.ContextHeaderMalformed tag, int increment = 1) { - var index = 155 + (int)tag; + var index = 156 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountStatsApiRequests(int increment = 1) { - Interlocked.Add(ref _buffer.Count[156], increment); + Interlocked.Add(ref _buffer.Count[157], increment); } public void RecordCountStatsApiResponses(Datadog.Trace.Telemetry.Metrics.MetricTags.StatusCode tag, int increment = 1) { - var index = 157 + (int)tag; + var index = 158 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountStatsApiErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.ApiError tag, int increment = 1) { - var index = 179 + (int)tag; + var index = 180 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountStatsCollapsedSpans(Datadog.Trace.Telemetry.Metrics.MetricTags.CollapsedStatsFields tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.OversizedStatsFields tag2, int increment = 1) { - var index = 182 + ((int)tag1 * 2) + (int)tag2; + var index = 183 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountOpenTelemetryConfigHiddenByDatadogConfig(Datadog.Trace.Telemetry.Metrics.MetricTags.DatadogConfiguration tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.OpenTelemetryConfiguration tag2, int increment = 1) { - var index = 216 + ((int)tag1 * 10) + (int)tag2; + var index = 217 + ((int)tag1 * 10) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountOpenTelemetryConfigInvalid(Datadog.Trace.Telemetry.Metrics.MetricTags.DatadogConfiguration tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.OpenTelemetryConfiguration tag2, int increment = 1) { - var index = 306 + ((int)tag1 * 10) + (int)tag2; + var index = 307 + ((int)tag1 * 10) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMetricsExportAttempts(Datadog.Trace.Telemetry.Metrics.MetricTags.Protocol tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.MetricEncoding tag2, int increment = 1) { - var index = 396 + ((int)tag1 * 2) + (int)tag2; + var index = 397 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMetricsExportSuccesses(Datadog.Trace.Telemetry.Metrics.MetricTags.Protocol tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.MetricEncoding tag2, int increment = 1) { - var index = 400 + ((int)tag1 * 2) + (int)tag2; + var index = 401 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMetricsExportPartialSuccesses(Datadog.Trace.Telemetry.Metrics.MetricTags.Protocol tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.MetricEncoding tag2, int increment = 1) { - var index = 404 + ((int)tag1 * 2) + (int)tag2; + var index = 405 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMetricsExportFailures(Datadog.Trace.Telemetry.Metrics.MetricTags.Protocol tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.MetricEncoding tag2, int increment = 1) { - var index = 408 + ((int)tag1 * 2) + (int)tag2; + var index = 409 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTelemetryApiRequests(Datadog.Trace.Telemetry.Metrics.MetricTags.TelemetryEndpoint tag, int increment = 1) { - var index = 412 + (int)tag; + var index = 413 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTelemetryApiResponses(Datadog.Trace.Telemetry.Metrics.MetricTags.TelemetryEndpoint tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.StatusCode tag2, int increment = 1) { - var index = 414 + ((int)tag1 * 22) + (int)tag2; + var index = 415 + ((int)tag1 * 22) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTelemetryApiErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.TelemetryEndpoint tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.ApiError tag2, int increment = 1) { - var index = 458 + ((int)tag1 * 3) + (int)tag2; + var index = 459 + ((int)tag1 * 3) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountVersionConflictTracerCreated(int increment = 1) { - Interlocked.Add(ref _buffer.Count[464], increment); + Interlocked.Add(ref _buffer.Count[465], increment); } public void RecordCountUnsupportedCustomInstrumentationServices(int increment = 1) { - Interlocked.Add(ref _buffer.Count[465], increment); + Interlocked.Add(ref _buffer.Count[466], increment); } public void RecordCountDirectLogLogs(Datadog.Trace.Telemetry.Metrics.MetricTags.IntegrationName tag, int increment = 1) { - var index = 466 + (int)tag; + var index = 467 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDirectLogApiRequests(int increment = 1) { - Interlocked.Add(ref _buffer.Count[551], increment); + Interlocked.Add(ref _buffer.Count[553], increment); } public void RecordCountDirectLogApiResponses(Datadog.Trace.Telemetry.Metrics.MetricTags.StatusCode tag, int increment = 1) { - var index = 552 + (int)tag; + var index = 554 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDirectLogApiErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.ApiError tag, int increment = 1) { - var index = 574 + (int)tag; + var index = 576 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerMemoryPressureTransitions(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureState tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureTrigger tag2, int increment = 1) { - var index = 577 + ((int)tag1 * 4) + (int)tag2; + var index = 579 + ((int)tag1 * 4) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerMemoryPressureDisabled(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureDisabledReason tag, int increment = 1) { - var index = 585 + (int)tag; + var index = 587 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerMemoryPressureMemoryUsagePct(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureState tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureMemoryBucket tag2, int increment = 1) { - var index = 587 + ((int)tag1 * 5) + (int)tag2; + var index = 589 + ((int)tag1 * 5) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerMemoryPressureGcActivity(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureState tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureGcBucket tag2, int increment = 1) { - var index = 597 + ((int)tag1 * 4) + (int)tag2; + var index = 599 + ((int)tag1 * 4) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerMemoryPressureDuration(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureDurationBucket tag, int increment = 1) { - var index = 605 + (int)tag; + var index = 607 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerEventsSkipped(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerEventsSkippedReason tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerEventType tag2, int increment = 1) { - var index = 609 + ((int)tag1 * 4) + (int)tag2; + var index = 611 + ((int)tag1 * 4) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerEventsDropped(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerEventsDroppedReason tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerCaptureEventType tag2, int increment = 1) { - var index = 621 + ((int)tag1 * 2) + (int)tag2; + var index = 623 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerCaptureIncomplete(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerCaptureEventType tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerCaptureIncompleteReason tag2, int increment = 1) { - var index = 625 + ((int)tag1 * 8) + (int)tag2; + var index = 627 + ((int)tag1 * 8) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountWafInit(Datadog.Trace.Telemetry.Metrics.MetricTags.WafStatus tag, int increment = 1) { - var index = 641 + (int)tag; + var index = 643 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountWafUpdates(Datadog.Trace.Telemetry.Metrics.MetricTags.WafStatus tag, int increment = 1) { - var index = 643 + (int)tag; + var index = 645 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountWafRequests(Datadog.Trace.Telemetry.Metrics.MetricTags.WafAnalysis tag, int increment = 1) { - var index = 645 + (int)tag; + var index = 647 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountInputTruncated(Datadog.Trace.Telemetry.Metrics.MetricTags.TruncationReason tag, int increment = 1) { - var index = 655 + (int)tag; + var index = 657 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountWafError(Datadog.Trace.Telemetry.Metrics.MetricTags.WafError tag, int increment = 1) { - var index = 658 + (int)tag; + var index = 660 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountRaspRuleEval(Datadog.Trace.Telemetry.Metrics.MetricTags.RaspRuleType tag, int increment = 1) { - var index = 662 + (int)tag; + var index = 664 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountRaspRuleMatch(Datadog.Trace.Telemetry.Metrics.MetricTags.RaspRuleTypeMatch tag, int increment = 1) { - var index = 667 + (int)tag; + var index = 669 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountRaspTimeout(Datadog.Trace.Telemetry.Metrics.MetricTags.RaspRuleType tag, int increment = 1) { - var index = 682 + (int)tag; + var index = 684 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMissingUserId(Datadog.Trace.Telemetry.Metrics.MetricTags.AuthenticationFrameworkWithEventType tag, int increment = 1) { - var index = 687 + (int)tag; + var index = 689 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMissingUserLogin(Datadog.Trace.Telemetry.Metrics.MetricTags.AuthenticationFrameworkWithEventType tag, int increment = 1) { - var index = 691 + (int)tag; + var index = 693 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountUserEventSdk(Datadog.Trace.Telemetry.Metrics.MetricTags.UserEventSdk tag, int increment = 1) { - var index = 695 + (int)tag; + var index = 697 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountIastExecutedSources(Datadog.Trace.Telemetry.Metrics.MetricTags.IastSourceType tag, int increment = 1) { - var index = 700 + (int)tag; + var index = 702 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountIastExecutedPropagations(int increment = 1) { - Interlocked.Add(ref _buffer.Count[714], increment); + Interlocked.Add(ref _buffer.Count[716], increment); } public void RecordCountIastExecutedSinks(Datadog.Trace.Telemetry.Metrics.MetricTags.IastVulnerabilityType tag, int increment = 1) { - var index = 715 + (int)tag; + var index = 717 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountIastRequestTainted(int increment = 1) { - Interlocked.Add(ref _buffer.Count[742], increment); + Interlocked.Add(ref _buffer.Count[744], increment); } public void RecordCountIastSuppressedVulnerabilities(Datadog.Trace.Telemetry.Metrics.MetricTags.IastVulnerabilityType tag, int increment = 1) { - var index = 743 + (int)tag; + var index = 745 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } } \ No newline at end of file diff --git a/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_CountShared.g.cs b/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_CountShared.g.cs index 82355f89f551..52bbe9a697c4 100644 --- a/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_CountShared.g.cs +++ b/tracer/src/Datadog.Trace/Generated/netcoreapp3.1/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_CountShared.g.cs @@ -11,7 +11,7 @@ namespace Datadog.Trace.Telemetry; internal sealed partial class MetricsTelemetryCollector { - private const int CountSharedLength = 340; + private const int CountSharedLength = 344; /// /// Creates the buffer for the values. @@ -356,6 +356,10 @@ private static AggregatedMetric[] GetCountSharedBuffer() new(new[] { "integration_name:hangfire", "error_type:invoker" }), new(new[] { "integration_name:hangfire", "error_type:execution" }), new(new[] { "integration_name:hangfire", "error_type:missing_member" }), + new(new[] { "integration_name:quartz", "error_type:duck_typing" }), + new(new[] { "integration_name:quartz", "error_type:invoker" }), + new(new[] { "integration_name:quartz", "error_type:execution" }), + new(new[] { "integration_name:quartz", "error_type:missing_member" }), new(new[] { "integration_name:serverlesscompat", "error_type:duck_typing" }), new(new[] { "integration_name:serverlesscompat", "error_type:invoker" }), new(new[] { "integration_name:serverlesscompat", "error_type:execution" }), @@ -368,7 +372,7 @@ private static AggregatedMetric[] GetCountSharedBuffer() /// It is equal to the cardinality of the tag combinations (or 1 if there are no tags) /// private static int[] CountSharedEntryCounts { get; } - = new int[]{ 340, }; + = new int[]{ 344, }; public void RecordCountSharedIntegrationsError(Datadog.Trace.Telemetry.Metrics.MetricTags.IntegrationName tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.InstrumentationError tag2, int increment = 1) { diff --git a/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationIdExtensions_EnumExtensions.g.cs b/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationIdExtensions_EnumExtensions.g.cs index cfc3e86ece7b..1e7a3ce2ce2c 100644 --- a/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationIdExtensions_EnumExtensions.g.cs +++ b/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationIdExtensions_EnumExtensions.g.cs @@ -17,7 +17,7 @@ internal static partial class IntegrationIdExtensions /// The number of members in the enum. /// This is a non-distinct count of defined names. /// - public const int Length = 80; + public const int Length = 81; /// /// Returns the string representation of the value. @@ -109,6 +109,7 @@ public static string ToStringFast(this Datadog.Trace.Configuration.IntegrationId Datadog.Trace.Configuration.IntegrationId.DatadogTraceVersionConflict => nameof(Datadog.Trace.Configuration.IntegrationId.DatadogTraceVersionConflict), Datadog.Trace.Configuration.IntegrationId.Hangfire => nameof(Datadog.Trace.Configuration.IntegrationId.Hangfire), Datadog.Trace.Configuration.IntegrationId.OpenFeature => nameof(Datadog.Trace.Configuration.IntegrationId.OpenFeature), + Datadog.Trace.Configuration.IntegrationId.Quartz => nameof(Datadog.Trace.Configuration.IntegrationId.Quartz), Datadog.Trace.Configuration.IntegrationId.ServerlessCompat => nameof(Datadog.Trace.Configuration.IntegrationId.ServerlessCompat), _ => value.ToString(), }; @@ -202,6 +203,7 @@ public static Datadog.Trace.Configuration.IntegrationId[] GetValues() Datadog.Trace.Configuration.IntegrationId.DatadogTraceVersionConflict, Datadog.Trace.Configuration.IntegrationId.Hangfire, Datadog.Trace.Configuration.IntegrationId.OpenFeature, + Datadog.Trace.Configuration.IntegrationId.Quartz, Datadog.Trace.Configuration.IntegrationId.ServerlessCompat, }; @@ -295,6 +297,7 @@ public static string[] GetNames() nameof(Datadog.Trace.Configuration.IntegrationId.DatadogTraceVersionConflict), nameof(Datadog.Trace.Configuration.IntegrationId.Hangfire), nameof(Datadog.Trace.Configuration.IntegrationId.OpenFeature), + nameof(Datadog.Trace.Configuration.IntegrationId.Quartz), nameof(Datadog.Trace.Configuration.IntegrationId.ServerlessCompat), }; } \ No newline at end of file diff --git a/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationNameToKeys.g.cs b/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationNameToKeys.g.cs index 1082a62da2ba..d5375990de0a 100644 --- a/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationNameToKeys.g.cs +++ b/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/EnumExtensionsGenerator/IntegrationNameToKeys.g.cs @@ -259,6 +259,9 @@ public static string[] GetAllIntegrationEnabledKeys() => "DD_TRACE_OPENFEATURE_ENABLED", "DD_TRACE_OpenFeature_ENABLED", "DD_OpenFeature_ENABLED", "DD_TRACE_OPENFEATURE_ANALYTICS_ENABLED", "DD_TRACE_OpenFeature_ANALYTICS_ENABLED", "DD_OpenFeature_ANALYTICS_ENABLED", "DD_TRACE_OPENFEATURE_ANALYTICS_SAMPLE_RATE", "DD_TRACE_OpenFeature_ANALYTICS_SAMPLE_RATE", "DD_OpenFeature_ANALYTICS_SAMPLE_RATE", + "DD_TRACE_QUARTZ_ENABLED", "DD_TRACE_Quartz_ENABLED", "DD_Quartz_ENABLED", + "DD_TRACE_QUARTZ_ANALYTICS_ENABLED", "DD_TRACE_Quartz_ANALYTICS_ENABLED", "DD_Quartz_ANALYTICS_ENABLED", + "DD_TRACE_QUARTZ_ANALYTICS_SAMPLE_RATE", "DD_TRACE_Quartz_ANALYTICS_SAMPLE_RATE", "DD_Quartz_ANALYTICS_SAMPLE_RATE", "DD_TRACE_SERVERLESSCOMPAT_ENABLED", "DD_TRACE_ServerlessCompat_ENABLED", "DD_ServerlessCompat_ENABLED", "DD_TRACE_SERVERLESSCOMPAT_ANALYTICS_ENABLED", "DD_TRACE_ServerlessCompat_ANALYTICS_ENABLED", "DD_ServerlessCompat_ANALYTICS_ENABLED", "DD_TRACE_SERVERLESSCOMPAT_ANALYTICS_SAMPLE_RATE", "DD_TRACE_ServerlessCompat_ANALYTICS_SAMPLE_RATE", "DD_ServerlessCompat_ANALYTICS_SAMPLE_RATE", @@ -351,6 +354,7 @@ public static System.Collections.Generic.KeyValuePair GetInteg "DatadogTraceVersionConflict" => new("DD_TRACE_DATADOGTRACEVERSIONCONFLICT_ENABLED", ["DD_TRACE_DatadogTraceVersionConflict_ENABLED", "DD_DatadogTraceVersionConflict_ENABLED"]), "Hangfire" => new("DD_TRACE_HANGFIRE_ENABLED", ["DD_TRACE_Hangfire_ENABLED", "DD_Hangfire_ENABLED"]), "OpenFeature" => new("DD_TRACE_OPENFEATURE_ENABLED", ["DD_TRACE_OpenFeature_ENABLED", "DD_OpenFeature_ENABLED"]), + "Quartz" => new("DD_TRACE_QUARTZ_ENABLED", ["DD_TRACE_Quartz_ENABLED", "DD_Quartz_ENABLED"]), "ServerlessCompat" => new("DD_TRACE_SERVERLESSCOMPAT_ENABLED", ["DD_TRACE_ServerlessCompat_ENABLED", "DD_ServerlessCompat_ENABLED"]), _ => GetIntegrationEnabledKeysFallback(integrationName) // we should never get here }; @@ -443,6 +447,7 @@ public static System.Collections.Generic.KeyValuePair GetInteg "DatadogTraceVersionConflict" => new("DD_TRACE_DATADOGTRACEVERSIONCONFLICT_ANALYTICS_ENABLED", ["DD_TRACE_DatadogTraceVersionConflict_ANALYTICS_ENABLED", "DD_DatadogTraceVersionConflict_ANALYTICS_ENABLED"]), "Hangfire" => new("DD_TRACE_HANGFIRE_ANALYTICS_ENABLED", ["DD_TRACE_Hangfire_ANALYTICS_ENABLED", "DD_Hangfire_ANALYTICS_ENABLED"]), "OpenFeature" => new("DD_TRACE_OPENFEATURE_ANALYTICS_ENABLED", ["DD_TRACE_OpenFeature_ANALYTICS_ENABLED", "DD_OpenFeature_ANALYTICS_ENABLED"]), + "Quartz" => new("DD_TRACE_QUARTZ_ANALYTICS_ENABLED", ["DD_TRACE_Quartz_ANALYTICS_ENABLED", "DD_Quartz_ANALYTICS_ENABLED"]), "ServerlessCompat" => new("DD_TRACE_SERVERLESSCOMPAT_ANALYTICS_ENABLED", ["DD_TRACE_ServerlessCompat_ANALYTICS_ENABLED", "DD_ServerlessCompat_ANALYTICS_ENABLED"]), _ => GetIntegrationAnalyticsEnabledKeysFallback(integrationName) // we should never get here }; @@ -535,6 +540,7 @@ public static System.Collections.Generic.KeyValuePair GetInteg "DatadogTraceVersionConflict" => new("DD_TRACE_DATADOGTRACEVERSIONCONFLICT_ANALYTICS_SAMPLE_RATE", ["DD_TRACE_DatadogTraceVersionConflict_ANALYTICS_SAMPLE_RATE", "DD_DatadogTraceVersionConflict_ANALYTICS_SAMPLE_RATE"]), "Hangfire" => new("DD_TRACE_HANGFIRE_ANALYTICS_SAMPLE_RATE", ["DD_TRACE_Hangfire_ANALYTICS_SAMPLE_RATE", "DD_Hangfire_ANALYTICS_SAMPLE_RATE"]), "OpenFeature" => new("DD_TRACE_OPENFEATURE_ANALYTICS_SAMPLE_RATE", ["DD_TRACE_OpenFeature_ANALYTICS_SAMPLE_RATE", "DD_OpenFeature_ANALYTICS_SAMPLE_RATE"]), + "Quartz" => new("DD_TRACE_QUARTZ_ANALYTICS_SAMPLE_RATE", ["DD_TRACE_Quartz_ANALYTICS_SAMPLE_RATE", "DD_Quartz_ANALYTICS_SAMPLE_RATE"]), "ServerlessCompat" => new("DD_TRACE_SERVERLESSCOMPAT_ANALYTICS_SAMPLE_RATE", ["DD_TRACE_ServerlessCompat_ANALYTICS_SAMPLE_RATE", "DD_ServerlessCompat_ANALYTICS_SAMPLE_RATE"]), _ => GetIntegrationAnalyticsSampleRateKeysFallback(integrationName) // we should never get here }; diff --git a/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountShared.g.cs b/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountShared.g.cs index 074a939c1ce9..3eee24bd10a9 100644 --- a/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountShared.g.cs +++ b/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/CiVisibilityMetricsTelemetryCollector_CountShared.g.cs @@ -11,7 +11,7 @@ namespace Datadog.Trace.Telemetry; internal sealed partial class CiVisibilityMetricsTelemetryCollector { - private const int CountSharedLength = 340; + private const int CountSharedLength = 344; /// /// Creates the buffer for the values. @@ -356,6 +356,10 @@ private static AggregatedMetric[] GetCountSharedBuffer() new(new[] { "integration_name:hangfire", "error_type:invoker" }), new(new[] { "integration_name:hangfire", "error_type:execution" }), new(new[] { "integration_name:hangfire", "error_type:missing_member" }), + new(new[] { "integration_name:quartz", "error_type:duck_typing" }), + new(new[] { "integration_name:quartz", "error_type:invoker" }), + new(new[] { "integration_name:quartz", "error_type:execution" }), + new(new[] { "integration_name:quartz", "error_type:missing_member" }), new(new[] { "integration_name:serverlesscompat", "error_type:duck_typing" }), new(new[] { "integration_name:serverlesscompat", "error_type:invoker" }), new(new[] { "integration_name:serverlesscompat", "error_type:execution" }), @@ -368,7 +372,7 @@ private static AggregatedMetric[] GetCountSharedBuffer() /// It is equal to the cardinality of the tag combinations (or 1 if there are no tags) /// private static int[] CountSharedEntryCounts { get; } - = new int[]{ 340, }; + = new int[]{ 344, }; public void RecordCountSharedIntegrationsError(Datadog.Trace.Telemetry.Metrics.MetricTags.IntegrationName tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.InstrumentationError tag2, int increment = 1) { diff --git a/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_Count.g.cs b/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_Count.g.cs index ea54deed1d51..012f230b22c9 100644 --- a/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_Count.g.cs +++ b/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_Count.g.cs @@ -11,7 +11,7 @@ namespace Datadog.Trace.Telemetry; internal sealed partial class MetricsTelemetryCollector { - private const int CountLength = 770; + private const int CountLength = 772; /// /// Creates the buffer for the values. @@ -109,14 +109,15 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "integration_name:emailhtmlinjection" }), new(new[] { "integration_name:protobuf" }), new(new[] { "integration_name:hangfire" }), + new(new[] { "integration_name:quartz" }), new(new[] { "integration_name:serverlesscompat" }), - // spans_finished, index = 89 + // spans_finished, index = 90 new(null), - // spans_enqueued_for_serialization, index = 90 + // spans_enqueued_for_serialization, index = 91 new(new[] { "reason:p0_keep" }), new(new[] { "reason:single_span_sampling" }), new(new[] { "reason:default" }), - // spans_dropped, index = 93 + // spans_dropped, index = 94 new(new[] { "reason:p0_drop" }), new(new[] { "reason:overfull_buffer" }), new(new[] { "reason:trace_too_large" }), @@ -124,13 +125,13 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "reason:api_error" }), new(new[] { "reason:trace_filter" }), new(new[] { "reason:buffer_locked" }), - // trace_segments_created, index = 100 + // trace_segments_created, index = 101 new(new[] { "new_continued:new" }), new(new[] { "new_continued:continued" }), - // trace_chunks_enqueued_for_serialization, index = 102 + // trace_chunks_enqueued_for_serialization, index = 103 new(new[] { "reason:p0_keep" }), new(new[] { "reason:default" }), - // trace_chunks_dropped, index = 104 + // trace_chunks_dropped, index = 105 new(new[] { "reason:p0_drop" }), new(new[] { "reason:overfull_buffer" }), new(new[] { "reason:trace_too_large" }), @@ -138,13 +139,13 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "reason:api_error" }), new(new[] { "reason:trace_filter" }), new(new[] { "reason:buffer_locked" }), - // trace_chunks_sent, index = 111 + // trace_chunks_sent, index = 112 new(null), - // trace_segments_closed, index = 112 + // trace_segments_closed, index = 113 new(null), - // trace_api.requests, index = 113 + // trace_api.requests, index = 114 new(null), - // trace_api.responses, index = 114 + // trace_api.responses, index = 115 new(new[] { "status_code:200" }), new(new[] { "status_code:201" }), new(new[] { "status_code:202" }), @@ -167,35 +168,35 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "status_code:503" }), new(new[] { "status_code:504" }), new(new[] { "status_code:5xx" }), - // trace_api.errors, index = 136 + // trace_api.errors, index = 137 new(new[] { "type:timeout" }), new(new[] { "type:network" }), new(new[] { "type:status_code" }), - // trace_partial_flush.count, index = 139 + // trace_partial_flush.count, index = 140 new(new[] { "reason:large_trace" }), new(new[] { "reason:single_span_ingestion" }), - // context_header_style.injected, index = 141 + // context_header_style.injected, index = 142 new(new[] { "header_style:tracecontext" }), new(new[] { "header_style:datadog" }), new(new[] { "header_style:b3multi" }), new(new[] { "header_style:b3single" }), new(new[] { "header_style:baggage" }), - // context_header_style.extracted, index = 146 + // context_header_style.extracted, index = 147 new(new[] { "header_style:tracecontext" }), new(new[] { "header_style:datadog" }), new(new[] { "header_style:b3multi" }), new(new[] { "header_style:b3single" }), new(new[] { "header_style:baggage" }), - // context_header.truncated, index = 151 + // context_header.truncated, index = 152 new(new[] { "truncation_reason:baggage_item_count_exceeded" }), new(new[] { "truncation_reason:baggage_byte_count_exceeded" }), new(new[] { "truncation_reason:baggage_extract_item_exceeded" }), new(new[] { "truncation_reason:baggage_extract_byte_exceeded" }), - // context_header_style.malformed, index = 155 + // context_header_style.malformed, index = 156 new(new[] { "header_style:baggage" }), - // stats_api.requests, index = 156 + // stats_api.requests, index = 157 new(null), - // stats_api.responses, index = 157 + // stats_api.responses, index = 158 new(new[] { "status_code:200" }), new(new[] { "status_code:201" }), new(new[] { "status_code:202" }), @@ -218,11 +219,11 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "status_code:503" }), new(new[] { "status_code:504" }), new(new[] { "status_code:5xx" }), - // stats_api.errors, index = 179 + // stats_api.errors, index = 180 new(new[] { "type:timeout" }), new(new[] { "type:network" }), new(new[] { "type:status_code" }), - // stats_collapsed_spans, index = 182 + // stats_collapsed_spans, index = 183 new(null), new(new[] { "oversized:additional_metric_tags" }), new(new[] { "collapsed:whole_key" }), @@ -257,7 +258,7 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "collapsed:http_endpoint", "collapsed:peer_tags", "collapsed:additional_metric_tags", "oversized:additional_metric_tags" }), new(new[] { "collapsed:resource", "collapsed:http_endpoint", "collapsed:peer_tags", "collapsed:additional_metric_tags" }), new(new[] { "collapsed:resource", "collapsed:http_endpoint", "collapsed:peer_tags", "collapsed:additional_metric_tags", "oversized:additional_metric_tags" }), - // otel.env.hiding, index = 216 + // otel.env.hiding, index = 217 new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_log_level" }), new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_metrics_exporter" }), new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_propagators" }), @@ -348,7 +349,7 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "config_datadog:unknown", "config_opentelemetry:otel_traces_sampler" }), new(new[] { "config_datadog:unknown", "config_opentelemetry:otel_traces_sampler_arg" }), new(new[] { "config_datadog:unknown", "config_opentelemetry:unknown" }), - // otel.env.invalid, index = 306 + // otel.env.invalid, index = 307 new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_log_level" }), new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_metrics_exporter" }), new(new[] { "config_datadog:dd_trace_debug", "config_opentelemetry:otel_propagators" }), @@ -439,30 +440,30 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "config_datadog:unknown", "config_opentelemetry:otel_traces_sampler" }), new(new[] { "config_datadog:unknown", "config_opentelemetry:otel_traces_sampler_arg" }), new(new[] { "config_datadog:unknown", "config_opentelemetry:unknown" }), - // otel.metrics_export_attempts, index = 396 + // otel.metrics_export_attempts, index = 397 new(new[] { "protocol:grpc", "encoding:protobuf" }), new(new[] { "protocol:grpc", "encoding:json" }), new(new[] { "protocol:http", "encoding:protobuf" }), new(new[] { "protocol:http", "encoding:json" }), - // otel.metrics_export_successes, index = 400 + // otel.metrics_export_successes, index = 401 new(new[] { "protocol:grpc", "encoding:protobuf" }), new(new[] { "protocol:grpc", "encoding:json" }), new(new[] { "protocol:http", "encoding:protobuf" }), new(new[] { "protocol:http", "encoding:json" }), - // otel.metrics_export_partial_successes, index = 404 + // otel.metrics_export_partial_successes, index = 405 new(new[] { "protocol:grpc", "encoding:protobuf" }), new(new[] { "protocol:grpc", "encoding:json" }), new(new[] { "protocol:http", "encoding:protobuf" }), new(new[] { "protocol:http", "encoding:json" }), - // otel.metrics_export_failures, index = 408 + // otel.metrics_export_failures, index = 409 new(new[] { "protocol:grpc", "encoding:protobuf" }), new(new[] { "protocol:grpc", "encoding:json" }), new(new[] { "protocol:http", "encoding:protobuf" }), new(new[] { "protocol:http", "encoding:json" }), - // telemetry_api.requests, index = 412 + // telemetry_api.requests, index = 413 new(new[] { "endpoint:agent" }), new(new[] { "endpoint:agentless" }), - // telemetry_api.responses, index = 414 + // telemetry_api.responses, index = 415 new(new[] { "endpoint:agent", "status_code:200" }), new(new[] { "endpoint:agent", "status_code:201" }), new(new[] { "endpoint:agent", "status_code:202" }), @@ -507,18 +508,18 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "endpoint:agentless", "status_code:503" }), new(new[] { "endpoint:agentless", "status_code:504" }), new(new[] { "endpoint:agentless", "status_code:5xx" }), - // telemetry_api.errors, index = 458 + // telemetry_api.errors, index = 459 new(new[] { "endpoint:agent", "type:timeout" }), new(new[] { "endpoint:agent", "type:network" }), new(new[] { "endpoint:agent", "type:status_code" }), new(new[] { "endpoint:agentless", "type:timeout" }), new(new[] { "endpoint:agentless", "type:network" }), new(new[] { "endpoint:agentless", "type:status_code" }), - // version_conflict_tracers_created, index = 464 + // version_conflict_tracers_created, index = 465 new(null), - // unsupported_custom_instrumentation_services, index = 465 + // unsupported_custom_instrumentation_services, index = 466 new(null), - // direct_log_logs, index = 466 + // direct_log_logs, index = 467 new(new[] { "integration_name:datadog" }), new(new[] { "integration_name:opentracing" }), new(new[] { "integration_name:version_conflict" }), @@ -603,10 +604,11 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "integration_name:emailhtmlinjection" }), new(new[] { "integration_name:protobuf" }), new(new[] { "integration_name:hangfire" }), + new(new[] { "integration_name:quartz" }), new(new[] { "integration_name:serverlesscompat" }), - // direct_log_api.requests, index = 551 + // direct_log_api.requests, index = 553 new(null), - // direct_log_api.responses, index = 552 + // direct_log_api.responses, index = 554 new(new[] { "status_code:200" }), new(new[] { "status_code:201" }), new(new[] { "status_code:202" }), @@ -629,11 +631,11 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "status_code:503" }), new(new[] { "status_code:504" }), new(new[] { "status_code:5xx" }), - // direct_log_api.errors, index = 574 + // direct_log_api.errors, index = 576 new(new[] { "type:timeout" }), new(new[] { "type:network" }), new(new[] { "type:status_code" }), - // memory_pressure.transitions, index = 577 + // memory_pressure.transitions, index = 579 new(new[] { "state:enter", "trigger:none" }), new(new[] { "state:enter", "trigger:memory" }), new(new[] { "state:enter", "trigger:gc" }), @@ -642,10 +644,10 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "state:exit", "trigger:memory" }), new(new[] { "state:exit", "trigger:gc" }), new(new[] { "state:exit", "trigger:both" }), - // memory_pressure.disabled, index = 585 + // memory_pressure.disabled, index = 587 new(new[] { "reason:no_signals" }), new(new[] { "reason:error" }), - // memory_pressure.memory_usage_pct, index = 587 + // memory_pressure.memory_usage_pct, index = 589 new(new[] { "state:enter", "bucket:lt_70" }), new(new[] { "state:enter", "bucket:70_80" }), new(new[] { "state:enter", "bucket:80_85" }), @@ -656,7 +658,7 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "state:exit", "bucket:80_85" }), new(new[] { "state:exit", "bucket:85_90" }), new(new[] { "state:exit", "bucket:gte_90" }), - // memory_pressure.gc_activity, index = 597 + // memory_pressure.gc_activity, index = 599 new(new[] { "state:enter", "bucket:lt_1" }), new(new[] { "state:enter", "bucket:1_2" }), new(new[] { "state:enter", "bucket:2_5" }), @@ -665,12 +667,12 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "state:exit", "bucket:1_2" }), new(new[] { "state:exit", "bucket:2_5" }), new(new[] { "state:exit", "bucket:gte_5" }), - // memory_pressure.duration, index = 605 + // memory_pressure.duration, index = 607 new(new[] { "bucket:lt_1s" }), new(new[] { "bucket:1_5s" }), new(new[] { "bucket:5_30s" }), new(new[] { "bucket:gte_30s" }), - // events.skipped, index = 609 + // events.skipped, index = 611 new(new[] { "reason:rateLimitGlobal", "event_type:snapshot" }), new(new[] { "reason:rateLimitGlobal", "event_type:log" }), new(new[] { "reason:rateLimitGlobal", "event_type:metric" }), @@ -683,12 +685,12 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "reason:evaluationTimeout", "event_type:log" }), new(new[] { "reason:evaluationTimeout", "event_type:metric" }), new(new[] { "reason:evaluationTimeout", "event_type:span" }), - // events.dropped, index = 621 + // events.dropped, index = 623 new(new[] { "reason:queueFull", "event_type:snapshot" }), new(new[] { "reason:queueFull", "event_type:log" }), new(new[] { "reason:payloadTooLarge", "event_type:snapshot" }), new(new[] { "reason:payloadTooLarge", "event_type:log" }), - // capture.incomplete, index = 625 + // capture.incomplete, index = 627 new(new[] { "event_type:snapshot", "reason:runtimeError" }), new(new[] { "event_type:snapshot", "reason:timeout" }), new(new[] { "event_type:snapshot", "reason:depth" }), @@ -705,13 +707,13 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "event_type:log", "reason:stringLength" }), new(new[] { "event_type:log", "reason:payloadTooLarge" }), new(new[] { "event_type:log", "reason:other" }), - // waf.init, index = 641 + // waf.init, index = 643 new(new[] { "waf_version", "event_rules_version", "success:true" }), new(new[] { "waf_version", "event_rules_version", "success:false" }), - // waf.updates, index = 643 + // waf.updates, index = 645 new(new[] { "waf_version", "event_rules_version", "success:true" }), new(new[] { "waf_version", "event_rules_version", "success:false" }), - // waf.requests, index = 645 + // waf.requests, index = 647 new(new[] { "waf_version", "event_rules_version", "rule_triggered:false", "request_blocked:false", "waf_timeout:false", "block_failure:false", "rate_limited:false", "input_truncated:false", "waf_error:false" }), new(new[] { "waf_version", "event_rules_version", "rule_triggered:true", "request_blocked:false", "waf_timeout:false", "block_failure:false", "rate_limited:false", "input_truncated:false", "waf_error:false" }), new(new[] { "waf_version", "event_rules_version", "rule_triggered:true", "request_blocked:true", "waf_timeout:false", "block_failure:false", "rate_limited:false", "input_truncated:false", "waf_error:false" }), @@ -722,22 +724,22 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "waf_version", "event_rules_version", "rule_triggered:false", "request_blocked:false", "waf_timeout:true", "block_failure:false", "rate_limited:false", "input_truncated:true", "waf_error:false" }), new(new[] { "waf_version", "event_rules_version", "rule_triggered:false", "request_blocked:false", "waf_timeout:false", "block_failure:false", "rate_limited:false", "input_truncated:false", "waf_error:true" }), new(new[] { "waf_version", "event_rules_version", "rule_triggered:false", "request_blocked:false", "waf_timeout:false", "block_failure:false", "rate_limited:false", "input_truncated:true", "waf_error:true" }), - // waf.input_truncated, index = 655 + // waf.input_truncated, index = 657 new(new[] { "truncation_reason:string_too_long" }), new(new[] { "truncation_reason:list_or_map_too_large" }), new(new[] { "truncation_reason:object_too_deep" }), - // waf.error, index = 658 + // waf.error, index = 660 new(new[] { "waf_version", "event_rules_version", "waf_error:-127" }), new(new[] { "waf_version", "event_rules_version", "waf_error:-3" }), new(new[] { "waf_version", "event_rules_version", "waf_error:-2" }), new(new[] { "waf_version", "event_rules_version", "waf_error:-1" }), - // rasp.rule.eval, index = 662 + // rasp.rule.eval, index = 664 new(new[] { "waf_version", "event_rules_version", "rule_type:lfi" }), new(new[] { "waf_version", "event_rules_version", "rule_type:ssrf" }), new(new[] { "waf_version", "event_rules_version", "rule_type:sql_injection" }), new(new[] { "waf_version", "event_rules_version", "rule_type:command_injection", "rule_variant:shell" }), new(new[] { "waf_version", "event_rules_version", "rule_type:command_injection", "rule_variant:exec" }), - // rasp.rule.match, index = 667 + // rasp.rule.match, index = 669 new(new[] { "waf_version", "event_rules_version", "block:success", "rule_type:lfi" }), new(new[] { "waf_version", "event_rules_version", "block:success", "rule_type:ssrf" }), new(new[] { "waf_version", "event_rules_version", "block:success", "rule_type:sql_injection" }), @@ -753,29 +755,29 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "waf_version", "event_rules_version", "block:irrelevant", "rule_type:sql_injection" }), new(new[] { "waf_version", "event_rules_version", "block:irrelevant", "rule_type:command_injection", "rule_variant:shell" }), new(new[] { "waf_version", "event_rules_version", "block:irrelevant", "rule_type:command_injection", "rule_variant:exec" }), - // rasp.timeout, index = 682 + // rasp.timeout, index = 684 new(new[] { "waf_version", "event_rules_version", "rule_type:lfi" }), new(new[] { "waf_version", "event_rules_version", "rule_type:ssrf" }), new(new[] { "waf_version", "event_rules_version", "rule_type:sql_injection" }), new(new[] { "waf_version", "event_rules_version", "rule_type:command_injection", "rule_variant:shell" }), new(new[] { "waf_version", "event_rules_version", "rule_type:command_injection", "rule_variant:exec" }), - // instrum.user_auth.missing_user_id, index = 687 + // instrum.user_auth.missing_user_id, index = 689 new(new[] { "framework:aspnetcore_identity", "event_type:login_success" }), new(new[] { "framework:aspnetcore_identity", "event_type:login_failure" }), new(new[] { "framework:aspnetcore_identity", "event_type:signup" }), new(new[] { "framework:unknown", "event_type:signup" }), - // instrum.user_auth.missing_user_login, index = 691 + // instrum.user_auth.missing_user_login, index = 693 new(new[] { "framework:aspnetcore_identity", "event_type:login_success" }), new(new[] { "framework:aspnetcore_identity", "event_type:login_failure" }), new(new[] { "framework:aspnetcore_identity", "event_type:signup" }), new(new[] { "framework:unknown", "event_type:signup" }), - // sdk.event, index = 695 + // sdk.event, index = 697 new(new[] { "event_type:login_success", "sdk_version:v1" }), new(new[] { "event_type:login_success", "sdk_version:v2" }), new(new[] { "event_type:login_failure", "sdk_version:v1" }), new(new[] { "event_type:login_failure", "sdk_version:v2" }), new(new[] { "event_type:custom", "sdk_version:v1" }), - // executed.source, index = 700 + // executed.source, index = 702 new(new[] { "source_type:http.request.body" }), new(new[] { "source_type:http.request.path" }), new(new[] { "source_type:http.request.parameter.name" }), @@ -790,9 +792,9 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "source_type:http.request.uri" }), new(new[] { "source_type:grpc.request.body" }), new(new[] { "source_type:sql.row.value" }), - // executed.propagation, index = 714 + // executed.propagation, index = 716 new(null), - // executed.sink, index = 715 + // executed.sink, index = 717 new(new[] { "vulnerability_type:none" }), new(new[] { "vulnerability_type:weak_cipher" }), new(new[] { "vulnerability_type:weak_hash" }), @@ -820,9 +822,9 @@ private static AggregatedMetric[] GetCountBuffer() new(new[] { "vulnerability_type:directory_listing_leak" }), new(new[] { "vulnerability_type:session_timeout" }), new(new[] { "vulnerability_type:email_html_injection" }), - // request.tainted, index = 742 + // request.tainted, index = 744 new(null), - // suppressed.vulnerabilities, index = 743 + // suppressed.vulnerabilities, index = 745 new(new[] { "vulnerability_type:none" }), new(new[] { "vulnerability_type:weak_cipher" }), new(new[] { "vulnerability_type:weak_hash" }), @@ -858,7 +860,7 @@ private static AggregatedMetric[] GetCountBuffer() /// It is equal to the cardinality of the tag combinations (or 1 if there are no tags) /// private static int[] CountEntryCounts { get; } - = new int[]{ 4, 85, 1, 3, 7, 2, 2, 7, 1, 1, 1, 22, 3, 2, 5, 5, 4, 1, 1, 22, 3, 34, 90, 90, 4, 4, 4, 4, 2, 44, 6, 1, 1, 85, 1, 22, 3, 8, 2, 10, 8, 4, 12, 4, 16, 2, 2, 10, 3, 4, 5, 15, 5, 4, 4, 5, 14, 1, 27, 1, 27, }; + = new int[]{ 4, 86, 1, 3, 7, 2, 2, 7, 1, 1, 1, 22, 3, 2, 5, 5, 4, 1, 1, 22, 3, 34, 90, 90, 4, 4, 4, 4, 2, 44, 6, 1, 1, 86, 1, 22, 3, 8, 2, 10, 8, 4, 12, 4, 16, 2, 2, 10, 3, 4, 5, 15, 5, 4, 4, 5, 14, 1, 27, 1, 27, }; public void RecordCountLogCreated(Datadog.Trace.Telemetry.Metrics.MetricTags.LogLevel tag, int increment = 1) { @@ -874,345 +876,345 @@ public void RecordCountSpanCreated(Datadog.Trace.Telemetry.Metrics.MetricTags.In public void RecordCountSpanFinished(int increment = 1) { - Interlocked.Add(ref _buffer.Count[89], increment); + Interlocked.Add(ref _buffer.Count[90], increment); } public void RecordCountSpanEnqueuedForSerialization(Datadog.Trace.Telemetry.Metrics.MetricTags.SpanEnqueueReason tag, int increment = 1) { - var index = 90 + (int)tag; + var index = 91 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountSpanDropped(Datadog.Trace.Telemetry.Metrics.MetricTags.DropReason tag, int increment = 1) { - var index = 93 + (int)tag; + var index = 94 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTraceSegmentCreated(Datadog.Trace.Telemetry.Metrics.MetricTags.TraceContinuation tag, int increment = 1) { - var index = 100 + (int)tag; + var index = 101 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTraceChunkEnqueued(Datadog.Trace.Telemetry.Metrics.MetricTags.TraceChunkEnqueueReason tag, int increment = 1) { - var index = 102 + (int)tag; + var index = 103 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTraceChunkDropped(Datadog.Trace.Telemetry.Metrics.MetricTags.DropReason tag, int increment = 1) { - var index = 104 + (int)tag; + var index = 105 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTraceChunkSent(int increment = 1) { - Interlocked.Add(ref _buffer.Count[111], increment); + Interlocked.Add(ref _buffer.Count[112], increment); } public void RecordCountTraceSegmentsClosed(int increment = 1) { - Interlocked.Add(ref _buffer.Count[112], increment); + Interlocked.Add(ref _buffer.Count[113], increment); } public void RecordCountTraceApiRequests(int increment = 1) { - Interlocked.Add(ref _buffer.Count[113], increment); + Interlocked.Add(ref _buffer.Count[114], increment); } public void RecordCountTraceApiResponses(Datadog.Trace.Telemetry.Metrics.MetricTags.StatusCode tag, int increment = 1) { - var index = 114 + (int)tag; + var index = 115 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTraceApiErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.ApiError tag, int increment = 1) { - var index = 136 + (int)tag; + var index = 137 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTracePartialFlush(Datadog.Trace.Telemetry.Metrics.MetricTags.PartialFlushReason tag, int increment = 1) { - var index = 139 + (int)tag; + var index = 140 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountContextHeaderStyleInjected(Datadog.Trace.Telemetry.Metrics.MetricTags.ContextHeaderStyle tag, int increment = 1) { - var index = 141 + (int)tag; + var index = 142 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountContextHeaderStyleExtracted(Datadog.Trace.Telemetry.Metrics.MetricTags.ContextHeaderStyle tag, int increment = 1) { - var index = 146 + (int)tag; + var index = 147 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountContextHeaderTruncated(Datadog.Trace.Telemetry.Metrics.MetricTags.ContextHeaderTruncationReason tag, int increment = 1) { - var index = 151 + (int)tag; + var index = 152 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountContextHeaderMalformed(Datadog.Trace.Telemetry.Metrics.MetricTags.ContextHeaderMalformed tag, int increment = 1) { - var index = 155 + (int)tag; + var index = 156 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountStatsApiRequests(int increment = 1) { - Interlocked.Add(ref _buffer.Count[156], increment); + Interlocked.Add(ref _buffer.Count[157], increment); } public void RecordCountStatsApiResponses(Datadog.Trace.Telemetry.Metrics.MetricTags.StatusCode tag, int increment = 1) { - var index = 157 + (int)tag; + var index = 158 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountStatsApiErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.ApiError tag, int increment = 1) { - var index = 179 + (int)tag; + var index = 180 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountStatsCollapsedSpans(Datadog.Trace.Telemetry.Metrics.MetricTags.CollapsedStatsFields tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.OversizedStatsFields tag2, int increment = 1) { - var index = 182 + ((int)tag1 * 2) + (int)tag2; + var index = 183 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountOpenTelemetryConfigHiddenByDatadogConfig(Datadog.Trace.Telemetry.Metrics.MetricTags.DatadogConfiguration tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.OpenTelemetryConfiguration tag2, int increment = 1) { - var index = 216 + ((int)tag1 * 10) + (int)tag2; + var index = 217 + ((int)tag1 * 10) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountOpenTelemetryConfigInvalid(Datadog.Trace.Telemetry.Metrics.MetricTags.DatadogConfiguration tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.OpenTelemetryConfiguration tag2, int increment = 1) { - var index = 306 + ((int)tag1 * 10) + (int)tag2; + var index = 307 + ((int)tag1 * 10) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMetricsExportAttempts(Datadog.Trace.Telemetry.Metrics.MetricTags.Protocol tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.MetricEncoding tag2, int increment = 1) { - var index = 396 + ((int)tag1 * 2) + (int)tag2; + var index = 397 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMetricsExportSuccesses(Datadog.Trace.Telemetry.Metrics.MetricTags.Protocol tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.MetricEncoding tag2, int increment = 1) { - var index = 400 + ((int)tag1 * 2) + (int)tag2; + var index = 401 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMetricsExportPartialSuccesses(Datadog.Trace.Telemetry.Metrics.MetricTags.Protocol tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.MetricEncoding tag2, int increment = 1) { - var index = 404 + ((int)tag1 * 2) + (int)tag2; + var index = 405 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMetricsExportFailures(Datadog.Trace.Telemetry.Metrics.MetricTags.Protocol tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.MetricEncoding tag2, int increment = 1) { - var index = 408 + ((int)tag1 * 2) + (int)tag2; + var index = 409 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTelemetryApiRequests(Datadog.Trace.Telemetry.Metrics.MetricTags.TelemetryEndpoint tag, int increment = 1) { - var index = 412 + (int)tag; + var index = 413 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTelemetryApiResponses(Datadog.Trace.Telemetry.Metrics.MetricTags.TelemetryEndpoint tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.StatusCode tag2, int increment = 1) { - var index = 414 + ((int)tag1 * 22) + (int)tag2; + var index = 415 + ((int)tag1 * 22) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountTelemetryApiErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.TelemetryEndpoint tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.ApiError tag2, int increment = 1) { - var index = 458 + ((int)tag1 * 3) + (int)tag2; + var index = 459 + ((int)tag1 * 3) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountVersionConflictTracerCreated(int increment = 1) { - Interlocked.Add(ref _buffer.Count[464], increment); + Interlocked.Add(ref _buffer.Count[465], increment); } public void RecordCountUnsupportedCustomInstrumentationServices(int increment = 1) { - Interlocked.Add(ref _buffer.Count[465], increment); + Interlocked.Add(ref _buffer.Count[466], increment); } public void RecordCountDirectLogLogs(Datadog.Trace.Telemetry.Metrics.MetricTags.IntegrationName tag, int increment = 1) { - var index = 466 + (int)tag; + var index = 467 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDirectLogApiRequests(int increment = 1) { - Interlocked.Add(ref _buffer.Count[551], increment); + Interlocked.Add(ref _buffer.Count[553], increment); } public void RecordCountDirectLogApiResponses(Datadog.Trace.Telemetry.Metrics.MetricTags.StatusCode tag, int increment = 1) { - var index = 552 + (int)tag; + var index = 554 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDirectLogApiErrors(Datadog.Trace.Telemetry.Metrics.MetricTags.ApiError tag, int increment = 1) { - var index = 574 + (int)tag; + var index = 576 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerMemoryPressureTransitions(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureState tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureTrigger tag2, int increment = 1) { - var index = 577 + ((int)tag1 * 4) + (int)tag2; + var index = 579 + ((int)tag1 * 4) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerMemoryPressureDisabled(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureDisabledReason tag, int increment = 1) { - var index = 585 + (int)tag; + var index = 587 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerMemoryPressureMemoryUsagePct(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureState tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureMemoryBucket tag2, int increment = 1) { - var index = 587 + ((int)tag1 * 5) + (int)tag2; + var index = 589 + ((int)tag1 * 5) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerMemoryPressureGcActivity(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureState tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureGcBucket tag2, int increment = 1) { - var index = 597 + ((int)tag1 * 4) + (int)tag2; + var index = 599 + ((int)tag1 * 4) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerMemoryPressureDuration(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerMemoryPressureDurationBucket tag, int increment = 1) { - var index = 605 + (int)tag; + var index = 607 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerEventsSkipped(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerEventsSkippedReason tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerEventType tag2, int increment = 1) { - var index = 609 + ((int)tag1 * 4) + (int)tag2; + var index = 611 + ((int)tag1 * 4) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerEventsDropped(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerEventsDroppedReason tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerCaptureEventType tag2, int increment = 1) { - var index = 621 + ((int)tag1 * 2) + (int)tag2; + var index = 623 + ((int)tag1 * 2) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountDebuggerCaptureIncomplete(Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerCaptureEventType tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.DebuggerCaptureIncompleteReason tag2, int increment = 1) { - var index = 625 + ((int)tag1 * 8) + (int)tag2; + var index = 627 + ((int)tag1 * 8) + (int)tag2; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountWafInit(Datadog.Trace.Telemetry.Metrics.MetricTags.WafStatus tag, int increment = 1) { - var index = 641 + (int)tag; + var index = 643 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountWafUpdates(Datadog.Trace.Telemetry.Metrics.MetricTags.WafStatus tag, int increment = 1) { - var index = 643 + (int)tag; + var index = 645 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountWafRequests(Datadog.Trace.Telemetry.Metrics.MetricTags.WafAnalysis tag, int increment = 1) { - var index = 645 + (int)tag; + var index = 647 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountInputTruncated(Datadog.Trace.Telemetry.Metrics.MetricTags.TruncationReason tag, int increment = 1) { - var index = 655 + (int)tag; + var index = 657 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountWafError(Datadog.Trace.Telemetry.Metrics.MetricTags.WafError tag, int increment = 1) { - var index = 658 + (int)tag; + var index = 660 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountRaspRuleEval(Datadog.Trace.Telemetry.Metrics.MetricTags.RaspRuleType tag, int increment = 1) { - var index = 662 + (int)tag; + var index = 664 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountRaspRuleMatch(Datadog.Trace.Telemetry.Metrics.MetricTags.RaspRuleTypeMatch tag, int increment = 1) { - var index = 667 + (int)tag; + var index = 669 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountRaspTimeout(Datadog.Trace.Telemetry.Metrics.MetricTags.RaspRuleType tag, int increment = 1) { - var index = 682 + (int)tag; + var index = 684 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMissingUserId(Datadog.Trace.Telemetry.Metrics.MetricTags.AuthenticationFrameworkWithEventType tag, int increment = 1) { - var index = 687 + (int)tag; + var index = 689 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountMissingUserLogin(Datadog.Trace.Telemetry.Metrics.MetricTags.AuthenticationFrameworkWithEventType tag, int increment = 1) { - var index = 691 + (int)tag; + var index = 693 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountUserEventSdk(Datadog.Trace.Telemetry.Metrics.MetricTags.UserEventSdk tag, int increment = 1) { - var index = 695 + (int)tag; + var index = 697 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountIastExecutedSources(Datadog.Trace.Telemetry.Metrics.MetricTags.IastSourceType tag, int increment = 1) { - var index = 700 + (int)tag; + var index = 702 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountIastExecutedPropagations(int increment = 1) { - Interlocked.Add(ref _buffer.Count[714], increment); + Interlocked.Add(ref _buffer.Count[716], increment); } public void RecordCountIastExecutedSinks(Datadog.Trace.Telemetry.Metrics.MetricTags.IastVulnerabilityType tag, int increment = 1) { - var index = 715 + (int)tag; + var index = 717 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } public void RecordCountIastRequestTainted(int increment = 1) { - Interlocked.Add(ref _buffer.Count[742], increment); + Interlocked.Add(ref _buffer.Count[744], increment); } public void RecordCountIastSuppressedVulnerabilities(Datadog.Trace.Telemetry.Metrics.MetricTags.IastVulnerabilityType tag, int increment = 1) { - var index = 743 + (int)tag; + var index = 745 + (int)tag; Interlocked.Add(ref _buffer.Count[index], increment); } } \ No newline at end of file diff --git a/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_CountShared.g.cs b/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_CountShared.g.cs index 82355f89f551..52bbe9a697c4 100644 --- a/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_CountShared.g.cs +++ b/tracer/src/Datadog.Trace/Generated/netstandard2.0/Datadog.Trace.SourceGenerators/TelemetryMetricGenerator/MetricsTelemetryCollector_CountShared.g.cs @@ -11,7 +11,7 @@ namespace Datadog.Trace.Telemetry; internal sealed partial class MetricsTelemetryCollector { - private const int CountSharedLength = 340; + private const int CountSharedLength = 344; /// /// Creates the buffer for the values. @@ -356,6 +356,10 @@ private static AggregatedMetric[] GetCountSharedBuffer() new(new[] { "integration_name:hangfire", "error_type:invoker" }), new(new[] { "integration_name:hangfire", "error_type:execution" }), new(new[] { "integration_name:hangfire", "error_type:missing_member" }), + new(new[] { "integration_name:quartz", "error_type:duck_typing" }), + new(new[] { "integration_name:quartz", "error_type:invoker" }), + new(new[] { "integration_name:quartz", "error_type:execution" }), + new(new[] { "integration_name:quartz", "error_type:missing_member" }), new(new[] { "integration_name:serverlesscompat", "error_type:duck_typing" }), new(new[] { "integration_name:serverlesscompat", "error_type:invoker" }), new(new[] { "integration_name:serverlesscompat", "error_type:execution" }), @@ -368,7 +372,7 @@ private static AggregatedMetric[] GetCountSharedBuffer() /// It is equal to the cardinality of the tag combinations (or 1 if there are no tags) /// private static int[] CountSharedEntryCounts { get; } - = new int[]{ 340, }; + = new int[]{ 344, }; public void RecordCountSharedIntegrationsError(Datadog.Trace.Telemetry.Metrics.MetricTags.IntegrationName tag1, Datadog.Trace.Telemetry.Metrics.MetricTags.InstrumentationError tag2, int increment = 1) { diff --git a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs index 2682c8e2a707..a5c6236f00fa 100644 --- a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs +++ b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs @@ -10,7 +10,6 @@ using System.Threading.Tasks; using Datadog.Trace.Configuration; using Datadog.Trace.TestHelpers; -using Datadog.Trace.Util; using FluentAssertions; using FluentAssertions.Execution; using VerifyXunit; @@ -90,7 +89,7 @@ await VerifyHelper.VerifySpans( .ThenBy(x => x.Error)) .UseFileName(filename); - await telemetry.AssertIntegrationEnabledAsync(GetIntegrationId(packageVersion)); + await telemetry.AssertIntegrationEnabledAsync(IntegrationId.Quartz); } } @@ -118,10 +117,4 @@ private static Tuple GetSuffix(string packageVersion) _ => new("V3", 2) }; } - - private static IntegrationId GetIntegrationId(string packageVersion) - => !StringUtil.IsNullOrEmpty(packageVersion) && new Version(packageVersion) >= new Version(4, 0, 0) - ? IntegrationId.Quartz - : IntegrationId.OpenTelemetry; - } From fc55fdcf494ff929c4d996f9a870d41cc68befa8 Mon Sep 17 00:00:00 2001 From: Mohammad Islam Date: Wed, 9 Sep 2026 14:21:45 -0400 Subject: [PATCH 6/8] fix: avoid double-counting Quartz activity spans --- .../Activity/ActivityListenerHandler.cs | 31 +++++++++++++++++++ .../QuartzDiagnosticObserver.cs | 1 - .../QuartzTests.cs | 2 ++ 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/tracer/src/Datadog.Trace/Activity/ActivityListenerHandler.cs b/tracer/src/Datadog.Trace/Activity/ActivityListenerHandler.cs index 04cc79e485f8..1309fd6f776d 100644 --- a/tracer/src/Datadog.Trace/Activity/ActivityListenerHandler.cs +++ b/tracer/src/Datadog.Trace/Activity/ActivityListenerHandler.cs @@ -5,6 +5,7 @@ #nullable enable +using System; using System.Collections.Concurrent; using Datadog.Trace.Activity.DuckTypes; using Datadog.Trace.Activity.Handlers; @@ -89,6 +90,16 @@ public static void OnActivityWithSourceStarted(string sourceName, T activity) var sName = sourceName ?? "(null)"; if (HandlerBySource.TryGetValue(sName, out var handler)) { + // Activities created through DiagnosticListener have an empty ActivitySource name. Give specialized + // integration handlers a chance to claim them by operation name before using the default handler. + if (StringUtil.IsNullOrEmpty(sourceName) + && handler is DefaultActivityHandler + && activity.OperationName is { } operationName + && GetIntegrationHandler(operationName) is { } integrationHandler) + { + handler = integrationHandler; + } + handler.ActivityStarted(sName, activity); } else @@ -110,5 +121,25 @@ public static void OnActivityWithSourceStopped(string sourceName, T activity) Log.Warning("ActivityListenerHandler: There's no handler to process the ActivityStopped event. [Source={SourceName}]", sName); } } + + private static IActivityHandler? GetIntegrationHandler(string operationName) + { + foreach (var handler in ActivityHandlersRegister.Handlers) + { + if (handler is DefaultActivityHandler) + { + return null; + } + + if (handler is not DisableActivityHandler + && handler is not IgnoreActivityHandler + && handler.ShouldListenTo(operationName, version: null)) + { + return handler; + } + } + + return null; + } } } diff --git a/tracer/src/Datadog.Trace/DiagnosticListeners/QuartzDiagnosticObserver.cs b/tracer/src/Datadog.Trace/DiagnosticListeners/QuartzDiagnosticObserver.cs index 15d91975a11e..a1a616f466f6 100644 --- a/tracer/src/Datadog.Trace/DiagnosticListeners/QuartzDiagnosticObserver.cs +++ b/tracer/src/Datadog.Trace/DiagnosticListeners/QuartzDiagnosticObserver.cs @@ -51,7 +51,6 @@ protected override void OnNext(string eventName, object arg) if (activity?.Instance is not null) { QuartzCommon.EnhanceActivityMetadata(activity); - Tracer.Instance.TracerManager.Telemetry.IntegrationGeneratedSpan(IntegrationId.Quartz); } break; diff --git a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs index a5c6236f00fa..88a22735d6e8 100644 --- a/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs +++ b/tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests/QuartzTests.cs @@ -90,6 +90,8 @@ await VerifyHelper.VerifySpans( .UseFileName(filename); await telemetry.AssertIntegrationEnabledAsync(IntegrationId.Quartz); + (await telemetry.GetMetricDataPointsAsync("spans_created", "integration_name:quartz")).Sum(x => x.Value).Should().Be(expectedSpanCount); + (await telemetry.GetMetricDataPointsAsync("spans_created", "integration_name:otel")).Should().BeEmpty(); } } From 23cfb9ae67dd4919dee76e86d2fc48451d70f279 Mon Sep 17 00:00:00 2001 From: Mohammad Islam Date: Wed, 9 Sep 2026 14:29:12 -0400 Subject: [PATCH 7/8] [Activity] Remove deprecated analytics metric --- .../Datadog.Trace/Activity/Handlers/ActivityHandlerCommon.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/tracer/src/Datadog.Trace/Activity/Handlers/ActivityHandlerCommon.cs b/tracer/src/Datadog.Trace/Activity/Handlers/ActivityHandlerCommon.cs index 6794316d9de0..5e65898d92cc 100644 --- a/tracer/src/Datadog.Trace/Activity/Handlers/ActivityHandlerCommon.cs +++ b/tracer/src/Datadog.Trace/Activity/Handlers/ActivityHandlerCommon.cs @@ -245,9 +245,6 @@ static Scope CreateScopeFromActivity(IntegrationId integrationId, T activity, Op rawTraceId: rawTraceId, rawSpanId: rawSpanId); -#pragma warning disable 618 // App analytics is deprecated, but still used - span.SetMetric(Trace.Tags.Analytics, Tracer.Instance.CurrentTraceSettings.Settings.GetIntegrationAnalyticsSampleRate(integrationId, enabledWithGlobalSetting: false)); -#pragma warning restore 618 Tracer.Instance.TracerManager.Telemetry.IntegrationGeneratedSpan(integrationId); return Tracer.Instance.ActivateSpan(span, finishOnClose: false); } From d6bb81c0f467fb73346724a42adefc89405338e8 Mon Sep 17 00:00:00 2001 From: Mohammad Islam Date: Wed, 9 Sep 2026 14:56:39 -0400 Subject: [PATCH 8/8] [Activity] Clarify integration handler fallback --- .../Activity/ActivityListenerHandler.cs | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/tracer/src/Datadog.Trace/Activity/ActivityListenerHandler.cs b/tracer/src/Datadog.Trace/Activity/ActivityListenerHandler.cs index 1309fd6f776d..b9761dd15b2a 100644 --- a/tracer/src/Datadog.Trace/Activity/ActivityListenerHandler.cs +++ b/tracer/src/Datadog.Trace/Activity/ActivityListenerHandler.cs @@ -90,14 +90,17 @@ public static void OnActivityWithSourceStarted(string sourceName, T activity) var sName = sourceName ?? "(null)"; if (HandlerBySource.TryGetValue(sName, out var handler)) { - // Activities created through DiagnosticListener have an empty ActivitySource name. Give specialized - // integration handlers a chance to claim them by operation name before using the default handler. - if (StringUtil.IsNullOrEmpty(sourceName) - && handler is DefaultActivityHandler - && activity.OperationName is { } operationName - && GetIntegrationHandler(operationName) is { } integrationHandler) + var isSourceNameMissing = StringUtil.IsNullOrEmpty(sourceName); + var isUsingDefaultHandler = handler is DefaultActivityHandler; + + // If the source lookup only found the default handler, use the operation name as a fallback. + if (isSourceNameMissing && isUsingDefaultHandler) { - handler = integrationHandler; + var integrationHandler = FindIntegrationHandlerByOperationName(activity.OperationName); + if (integrationHandler is not null) + { + handler = integrationHandler; + } } handler.ActivityStarted(sName, activity); @@ -122,8 +125,13 @@ public static void OnActivityWithSourceStopped(string sourceName, T activity) } } - private static IActivityHandler? GetIntegrationHandler(string operationName) + private static IActivityHandler? FindIntegrationHandlerByOperationName(string? operationName) { + if (StringUtil.IsNullOrEmpty(operationName)) + { + return null; + } + foreach (var handler in ActivityHandlersRegister.Handlers) { if (handler is DefaultActivityHandler)