@@ -29,6 +29,16 @@ public sealed partial class ExporterSettings
2929 {
3030 private static readonly IDatadogLogger Log = DatadogLogging . GetLoggerFor ( typeof ( ExporterSettings ) ) ;
3131
32+ /// <summary>
33+ /// Backing field for AzureFunctionsGeneratedTracesPipeName.
34+ /// </summary>
35+ private static string ? _azureFunctionsGeneratedTracesPipeName ;
36+
37+ /// <summary>
38+ /// Backing field for AzureFunctionsGeneratedMetricsPipeName.
39+ /// </summary>
40+ private static string ? _azureFunctionsGeneratedMetricsPipeName ;
41+
3242 /// <summary>
3343 /// Allows overriding of file system access for tests.
3444 /// </summary>
@@ -101,14 +111,14 @@ internal ExporterSettings(Raw rawSettings, Func<string, bool> fileExists, IConfi
101111 if ( string . IsNullOrEmpty ( tracesPipeName ) )
102112 {
103113 tracesPipeName = GenerateUniquePipeName ( "dd_trace" ) ;
104- AzureFunctionsGeneratedTracesPipeName = tracesPipeName ;
114+ _azureFunctionsGeneratedTracesPipeName = tracesPipeName ;
105115 Log . Information ( "Azure Functions environment detected with no explicit trace pipe name. Generated unique pipe name: {TracesPipeName}" , tracesPipeName ) ;
106116 }
107117
108118 if ( string . IsNullOrEmpty ( metricsPipeName ) )
109119 {
110120 metricsPipeName = GenerateUniquePipeName ( "dd_dogstatsd" ) ;
111- AzureFunctionsGeneratedMetricsPipeName = metricsPipeName ;
121+ _azureFunctionsGeneratedMetricsPipeName = metricsPipeName ;
112122 Log . Information ( "Azure Functions environment detected with no explicit metrics pipe name. Generated unique pipe name: {MetricsPipeName}" , metricsPipeName ) ;
113123 }
114124 }
@@ -149,14 +159,14 @@ internal ExporterSettings(Raw rawSettings, Func<string, bool> fileExists, IConfi
149159 /// This is set when running in Azure Functions without explicit pipe name configuration.
150160 /// Used by ServerlessCompat instrumentation to coordinate pipe names with compat layer.
151161 /// </summary>
152- internal static string ? AzureFunctionsGeneratedTracesPipeName { get ; private set ; }
162+ internal static string ? AzureFunctionsGeneratedTracesPipeName => _azureFunctionsGeneratedTracesPipeName ;
153163
154164 /// <summary>
155165 /// Gets the generated metrics pipe name for Azure Functions coordination.
156166 /// This is set when running in Azure Functions without explicit pipe name configuration.
157167 /// Used by ServerlessCompat instrumentation to coordinate pipe names with compat layer.
158168 /// </summary>
159- internal static string ? AzureFunctionsGeneratedMetricsPipeName { get ; private set ; }
169+ internal static string ? AzureFunctionsGeneratedMetricsPipeName => _azureFunctionsGeneratedMetricsPipeName ;
160170
161171 /// <summary>
162172 /// Gets the Uri where the Tracer can connect to the Agent.
0 commit comments