Skip to content

Commit e06d54f

Browse files
committed
Commit temporary generated ConfigurationKeys2.cs (will eventually be renamed to ConfigurationKeys.cs)
1 parent 987a068 commit e06d54f

File tree

65 files changed

+7984
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+7984
-1
lines changed

tracer/src/Datadog.Trace/Configuration/ConfigurationKeys.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ namespace Datadog.Trace.Configuration
1414
/// </summary>
1515
internal static partial class ConfigurationKeys
1616
{
17+
// temporary so that ConfigurationKeys2 can resolve reference, all this is removed later
18+
public const string TraceLogPath = "DD_TRACE_LOG_PATH";
19+
1720
/// <summary>
1821
/// Configuration key to enable experimental features.
1922
/// </summary>
@@ -967,7 +970,7 @@ internal static class DataStreamsMonitoring
967970
/// Configuration key for enabling legacy binary headers in Data Streams Monitoring.
968971
/// false by default if DSM is in default state, true otherwise
969972
/// </summary>
970-
/// <see cref="TracerSettings.IsDataStreamsLegacyHeadersEnabled"/>
973+
/// <see cref="TracerSettings.IsDataStreamsLegacyHeadersEnabled"/>
971974
public const string LegacyHeadersEnabled = "DD_DATA_STREAMS_LEGACY_HEADERS";
972975
}
973976
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
// <copyright company="Datadog">
2+
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache 2 License.
3+
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2017 Datadog, Inc.
4+
// </copyright>
5+
// <auto-generated/>
6+
7+
#nullable enable
8+
9+
// This file is auto-generated from supported-configurations.json and supported-configurations-docs.yaml
10+
// Do not edit this file directly. The source generator will regenerate it on build.
11+
// NOTE: If you remove keys/products from the JSON, run 'dotnet clean' and remove old generated files.
12+
namespace Datadog.Trace.Configuration;
13+
14+
internal static partial class ConfigurationKeys2
15+
{
16+
internal static class AppSec
17+
{
18+
/// <summary>
19+
/// When ASM is enabled, collects in spans endpoints apis schemas analyzed by the waf, default value is true.
20+
/// </summary>
21+
public const string ApiSecurityEnabled = "DD_API_SECURITY_ENABLED";
22+
23+
/// <summary>
24+
/// with a default value of true, it allows a customer to disable the collection of endpoints for API Security.
25+
/// </summary>
26+
public const string ApiSecurityEndpointCollectionEnabled = "DD_API_SECURITY_ENDPOINT_COLLECTION_ENABLED";
27+
28+
/// <summary>
29+
/// with a default value of 300, it defines the maximum number of endpoints to be collected (serialized) for API Security.
30+
/// </summary>
31+
public const string ApiSecurityEndpointCollectionMessageLimit = "DD_API_SECURITY_ENDPOINT_COLLECTION_MESSAGE_LIMIT";
32+
33+
/// <summary>
34+
/// Enables the parsing of the response body in the API Security module. Defaults to true
35+
/// </summary>
36+
public const string ApiSecurityParseResponseBody = "DD_API_SECURITY_PARSE_RESPONSE_BODY";
37+
38+
/// <summary>
39+
/// Api security sample delay in seconds , should be a float. Set to 0 for testing purposes. default value of 30.
40+
/// </summary>
41+
public const string ApiSecuritySampleDelay = "DD_API_SECURITY_SAMPLE_DELAY";
42+
43+
/// <summary>
44+
/// Automatic instrumentation of user event mode. Values can be ident, disabled, anon.
45+
/// </summary>
46+
public const string UserEventsAutoInstrumentationMode = "DD_APPSEC_AUTO_USER_INSTRUMENTATION_MODE";
47+
48+
/// <summary>
49+
/// Deprecate. Automatic tracking of user events mode. Values can be disabled, safe or extended.
50+
/// This config is in the process of being deprecated. Please use DD_APPSEC_AUTO_USER_INSTRUMENTATION_MODE
51+
/// instead.
52+
/// Values will be automatically translated:
53+
/// disabled = disabled
54+
/// safe = anon
55+
/// extended = ident
56+
/// </summary>
57+
public const string UserEventsAutomatedTracking = "DD_APPSEC_AUTOMATED_USER_EVENTS_TRACKING";
58+
59+
/// <summary>
60+
/// Configuration key for enabling or disabling the AppSec.
61+
/// Default is value is false (disabled).
62+
/// </summary>
63+
public const string Enabled = "DD_APPSEC_ENABLED";
64+
65+
/// <summary>
66+
/// Comma separated keys indicating the optional custom headers the user wants to send.
67+
/// Default is value is null.
68+
/// </summary>
69+
public const string ExtraHeaders = "DD_APPSEC_EXTRA_HEADERS";
70+
71+
/// <summary>
72+
/// Blocking response template for HTML content. This template is used in combination with the status code to craft and send a response upon blocking the request.
73+
/// </summary>
74+
public const string HtmlBlockedTemplate = "DD_APPSEC_HTTP_BLOCKED_TEMPLATE_HTML";
75+
76+
/// <summary>
77+
/// Blocking response template for Json content. This template is used in combination with the status code to craft and send a response upon blocking the request.
78+
/// </summary>
79+
public const string JsonBlockedTemplate = "DD_APPSEC_HTTP_BLOCKED_TEMPLATE_JSON";
80+
81+
/// <summary>
82+
/// Configuration key indicating the optional name of the custom header to take into account for the ip address.
83+
/// Default is value is null (do not override).
84+
/// </summary>
85+
public const string CustomIpHeader = "DD_APPSEC_IPHEADER";
86+
87+
/// <summary>
88+
/// Specifies if the AppSec traces should be explicitly kept or dropped.
89+
/// Default is true, to keep all traces, false means drop all traces (by setting AutoReject as sampling priority).
90+
/// For internal testing only.
91+
/// </summary>
92+
public const string KeepTraces = "DD_APPSEC_KEEP_TRACES";
93+
94+
/// <summary>
95+
/// with a default value of 32, defines the maximum depth of a stack trace to be reported due to RASP events. O for unlimited.
96+
/// </summary>
97+
public const string MaxStackTraceDepth = "DD_APPSEC_MAX_STACK_TRACE_DEPTH";
98+
99+
/// <summary>
100+
/// with a default value of 75, defines the percentage of frames taken from the top of the stack when trimming. Min 0, Max 100
101+
/// </summary>
102+
public const string MaxStackTraceDepthTopPercent = "DD_APPSEC_MAX_STACK_TRACE_DEPTH_TOP_PERCENT";
103+
104+
/// <summary>
105+
/// with a default value of 2, defines the maximum number of stack traces to be reported due to RASP events. 0 for unlimited.
106+
/// </summary>
107+
public const string MaxStackTraces = "DD_APPSEC_MAX_STACK_TRACES";
108+
109+
/// <summary>
110+
/// The regex that will be used to obfuscate possible sensitive data in keys that are highlighted WAF as potentially malicious
111+
/// </summary>
112+
public const string ObfuscationParameterKeyRegex = "DD_APPSEC_OBFUSCATION_PARAMETER_KEY_REGEXP";
113+
114+
/// <summary>
115+
/// The regex that will be used to obfuscate possible sensitive data in values that are highlighted WAF as potentially malicious
116+
/// </summary>
117+
public const string ObfuscationParameterValueRegex = "DD_APPSEC_OBFUSCATION_PARAMETER_VALUE_REGEXP";
118+
119+
/// <summary>
120+
/// default value to true. Set to false to disable exploit prevention.
121+
/// </summary>
122+
public const string RaspEnabled = "DD_APPSEC_RASP_ENABLED";
123+
124+
/// <summary>
125+
/// Override the default rules file provided. Must be a path to a valid JSON rules file.
126+
/// Default is value is null (do not override).
127+
/// </summary>
128+
public const string Rules = "DD_APPSEC_RULES";
129+
130+
/// <summary>
131+
/// Activate SCA (Software Composition Analysis), used in the backend
132+
/// </summary>
133+
public const string ScaEnabled = "DD_APPSEC_SCA_ENABLED";
134+
135+
/// <summary>
136+
/// with a default value of true, it allows a customer to disable the generation of stack traces, for any ASM-specific purpose such as RASP.
137+
/// </summary>
138+
public const string StackTraceEnabled = "DD_APPSEC_STACK_TRACE_ENABLED";
139+
140+
/// <summary>
141+
/// Limits the amount of AppSec traces sent per second with an integer value, strictly positive.
142+
/// </summary>
143+
public const string TraceRateLimit = "DD_APPSEC_TRACE_RATE_LIMIT";
144+
145+
/// <summary>
146+
/// Activate debug logs for the WAF
147+
/// </summary>
148+
public const string WafDebugEnabled = "DD_APPSEC_WAF_DEBUG";
149+
150+
/// <summary>
151+
/// WAF timeout in microseconds of each WAF execution (the timeout value passed to ddwaf_run).
152+
/// </summary>
153+
public const string WafTimeout = "DD_APPSEC_WAF_TIMEOUT";
154+
155+
/// <summary>
156+
/// Use new unsafe encoder for the waf
157+
/// </summary>
158+
public const string UseUnsafeEncoder = "DD_EXPERIMENTAL_APPSEC_USE_UNSAFE_ENCODER";
159+
}
160+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// <copyright company="Datadog">
2+
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache 2 License.
3+
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2017 Datadog, Inc.
4+
// </copyright>
5+
// <auto-generated/>
6+
7+
#nullable enable
8+
9+
// This file is auto-generated from supported-configurations.json and supported-configurations-docs.yaml
10+
// Do not edit this file directly. The source generator will regenerate it on build.
11+
// NOTE: If you remove keys/products from the JSON, run 'dotnet clean' and remove old generated files.
12+
namespace Datadog.Trace.Configuration;
13+
14+
internal static partial class ConfigurationKeys2
15+
{
16+
internal static class AzureAppService
17+
{
18+
public const string SiteExtensionVersionKey = "DD_AAS_DOTNET_EXTENSION_VERSION";
19+
20+
/// <summary>
21+
/// Used to force the loader to start dogstatsd (in case automatic instrumentation is disabled)
22+
/// </summary>
23+
public const string AasEnableCustomMetrics = "DD_AAS_ENABLE_CUSTOM_METRICS";
24+
25+
/// <summary>
26+
/// Used to force the loader to start the trace agent (in case automatic instrumentation is disabled)
27+
/// </summary>
28+
public const string AasEnableCustomTracing = "DD_AAS_ENABLE_CUSTOM_TRACING";
29+
30+
public const string AzureAppServicesContextKey = "DD_AZURE_APP_SERVICES";
31+
}
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
// <copyright company="Datadog">
2+
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache 2 License.
3+
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2017 Datadog, Inc.
4+
// </copyright>
5+
// <auto-generated/>
6+
7+
#nullable enable
8+
9+
// This file is auto-generated from supported-configurations.json and supported-configurations-docs.yaml
10+
// Do not edit this file directly. The source generator will regenerate it on build.
11+
// NOTE: If you remove keys/products from the JSON, run 'dotnet clean' and remove old generated files.
12+
namespace Datadog.Trace.Configuration;
13+
14+
internal static partial class ConfigurationKeys2
15+
{
16+
internal static class CIVisibility
17+
{
18+
/// <summary>
19+
/// An internal key used to "tell" tracer settings that we're running in CI Visibility mode
20+
/// </summary>
21+
public const string IsRunningInCiVisMode = "_DD_INTERNAL_IS_RUNNING_IN_CIVISIBILITY";
22+
23+
/// <summary>
24+
/// Configuration key for enabling or disabling Agentless in CI Visibility.
25+
/// Default value is false (disabled).
26+
/// </summary>
27+
public const string AgentlessEnabled = "DD_CIVISIBILITY_AGENTLESS_ENABLED";
28+
29+
/// <summary>
30+
/// Configuration key for setting the agentless url endpoint
31+
/// </summary>
32+
public const string AgentlessUrl = "DD_CIVISIBILITY_AGENTLESS_URL";
33+
34+
/// <summary>
35+
/// Configuration key for setting the code coverage collector path
36+
/// </summary>
37+
public const string CodeCoverageCollectorPath = "DD_CIVISIBILITY_CODE_COVERAGE_COLLECTORPATH";
38+
39+
/// <summary>
40+
/// Configuration key for enabling or disabling jit optimizations in the Code Coverage
41+
/// </summary>
42+
public const string CodeCoverageEnableJitOptimizations = "DD_CIVISIBILITY_CODE_COVERAGE_ENABLE_JIT_OPTIMIZATIONS";
43+
44+
/// <summary>
45+
/// Configuration key for enabling or disabling Code Coverage in CI Visibility.
46+
/// </summary>
47+
public const string CodeCoverage = "DD_CIVISIBILITY_CODE_COVERAGE_ENABLED";
48+
49+
/// <summary>
50+
/// Configuration key for selecting the code coverage mode LineExecution or LineCallCount
51+
/// </summary>
52+
public const string CodeCoverageMode = "DD_CIVISIBILITY_CODE_COVERAGE_MODE";
53+
54+
/// <summary>
55+
/// Configuration key for setting the code coverage jsons destination path.
56+
/// </summary>
57+
public const string CodeCoveragePath = "DD_CIVISIBILITY_CODE_COVERAGE_PATH";
58+
59+
/// <summary>
60+
/// Configuration key for re-signing assemblies after the Code Coverage modification.
61+
/// </summary>
62+
public const string CodeCoverageSnkFile = "DD_CIVISIBILITY_CODE_COVERAGE_SNK_FILEPATH";
63+
64+
/// <summary>
65+
/// Configuration key for a kill-switch that allows to explicitly disable dynamic instrumentation even if the remote setting is enabled.
66+
/// </summary>
67+
public const string DynamicInstrumentationEnabled = "DD_CIVISIBILITY_DI_ENABLED";
68+
69+
/// <summary>
70+
/// Configuration key for enabling or disabling the early flake detection feature in CI Visibility
71+
/// </summary>
72+
public const string EarlyFlakeDetectionEnabled = "DD_CIVISIBILITY_EARLY_FLAKE_DETECTION_ENABLED";
73+
74+
/// <summary>
75+
/// Configuration key for enabling or disabling CI Visibility.
76+
/// Default value is false (disabled).
77+
/// </summary>
78+
public const string Enabled = "DD_CIVISIBILITY_ENABLED";
79+
80+
/// <summary>
81+
/// Configuration key for setting the external code coverage file path
82+
/// </summary>
83+
public const string ExternalCodeCoveragePath = "DD_CIVISIBILITY_EXTERNAL_CODE_COVERAGE_PATH";
84+
85+
/// <summary>
86+
/// Configuration key for the maximum number of retry attempts for a single test case.
87+
/// </summary>
88+
public const string FlakyRetryCount = "DD_CIVISIBILITY_FLAKY_RETRY_COUNT";
89+
90+
/// <summary>
91+
/// Configuration key for a kill-switch that allows to explicitly disable retries even if the remote setting is enabled.
92+
/// </summary>
93+
public const string FlakyRetryEnabled = "DD_CIVISIBILITY_FLAKY_RETRY_ENABLED";
94+
95+
/// <summary>
96+
/// Configuration key for forcing Agent's EVP Proxy
97+
/// </summary>
98+
public const string ForceAgentsEvpProxy = "DD_CIVISIBILITY_FORCE_AGENT_EVP_PROXY";
99+
100+
/// <summary>
101+
/// Configuration key for enabling or disabling Datadog.Trace GAC installation
102+
/// </summary>
103+
public const string InstallDatadogTraceInGac = "DD_CIVISIBILITY_GAC_INSTALL_ENABLED";
104+
105+
/// <summary>
106+
/// Configuration key for enabling or disabling Uploading Git Metadata in CI Visibility
107+
/// Default Value is false (disabled)
108+
/// </summary>
109+
public const string GitUploadEnabled = "DD_CIVISIBILITY_GIT_UPLOAD_ENABLED";
110+
111+
/// <summary>
112+
/// Configuration key for enabling Impacted Tests Detection.
113+
/// </summary>
114+
public const string ImpactedTestsDetectionEnabled = "DD_CIVISIBILITY_IMPACTED_TESTS_DETECTION_ENABLED";
115+
116+
/// <summary>
117+
/// Configuration key for enabling or disabling Intelligent Test Runner in CI Visibility
118+
/// Default Value is false (disabled)
119+
/// </summary>
120+
public const string IntelligentTestRunnerEnabled = "DD_CIVISIBILITY_ITR_ENABLED";
121+
122+
/// <summary>
123+
/// Configuration key for enabling or disabling the known tests feature in CI Visibility
124+
/// </summary>
125+
public const string KnownTestsEnabled = "DD_CIVISIBILITY_KNOWN_TESTS_ENABLED";
126+
127+
/// <summary>
128+
/// Configuration key for enabling or disabling Logs direct submission.
129+
/// Default value is false (disabled).
130+
/// </summary>
131+
public const string Logs = "DD_CIVISIBILITY_LOGS_ENABLED";
132+
133+
/// <summary>
134+
/// Configuration key for set the rum flushing wait in milliseconds
135+
/// </summary>
136+
public const string RumFlushWaitMillis = "DD_CIVISIBILITY_RUM_FLUSH_WAIT_MILLIS";
137+
138+
/// <summary>
139+
/// Configuration key for enabling or disabling Intelligent Test Runner test skipping feature in CI Visibility
140+
/// </summary>
141+
public const string TestsSkippingEnabled = "DD_CIVISIBILITY_TESTSSKIPPING_ENABLED";
142+
143+
/// <summary>
144+
/// Configuration key for the maximum number of retry attempts for the entire session.
145+
/// </summary>
146+
public const string TotalFlakyRetryCount = "DD_CIVISIBILITY_TOTAL_FLAKY_RETRY_COUNT";
147+
148+
/// <summary>
149+
/// Configuration key for the number of retries to fix a flaky test.
150+
/// </summary>
151+
public const string TestManagementAttemptToFixRetries = "DD_TEST_MANAGEMENT_ATTEMPT_TO_FIX_RETRIES";
152+
153+
/// <summary>
154+
/// Configuration key for enabling or disabling the Test Management feature.
155+
/// </summary>
156+
public const string TestManagementEnabled = "DD_TEST_MANAGEMENT_ENABLED";
157+
158+
/// <summary>
159+
/// Configuration key for set the test session name
160+
/// </summary>
161+
public const string TestSessionName = "DD_TEST_SESSION_NAME";
162+
}
163+
}

0 commit comments

Comments
 (0)