@@ -24,10 +24,15 @@ public static partial class BuiltInSystemDiagnosticsMeters
24
24
/// <summary>
25
25
/// Matches the built-in Microsoft.AspNetCore.Hosting metrics
26
26
/// </summary>
27
- #if NET8_0_OR_GREATER
27
+ #if NET9_0_OR_GREATER
28
+ public static readonly StringOrRegex MicrosoftAspNetCoreHosting = MicrosoftAspNetCoreHostingRegex ;
29
+
30
+ [ GeneratedRegex ( MicrosoftAspNetCoreHostingPattern ) ]
31
+ private static partial Regex MicrosoftAspNetCoreHostingRegex { get ; }
32
+ #elif NET8_0
28
33
public static readonly StringOrRegex MicrosoftAspNetCoreHosting = MicrosoftAspNetCoreHostingRegex ( ) ;
29
34
30
- [ GeneratedRegex ( MicrosoftAspNetCoreHostingPattern , RegexOptions . Compiled ) ]
35
+ [ GeneratedRegex ( MicrosoftAspNetCoreHostingPattern ) ]
31
36
private static partial Regex MicrosoftAspNetCoreHostingRegex ( ) ;
32
37
#else
33
38
public static readonly StringOrRegex MicrosoftAspNetCoreHosting = new Regex ( MicrosoftAspNetCoreHostingPattern , RegexOptions . Compiled ) ;
@@ -36,10 +41,15 @@ public static partial class BuiltInSystemDiagnosticsMeters
36
41
/// <summary>
37
42
/// Matches the built-in Microsoft.AspNetCore.Routing metrics
38
43
/// </summary>
39
- #if NET8_0_OR_GREATER
44
+ #if NET9_0_OR_GREATER
45
+ public static readonly StringOrRegex MicrosoftAspNetCoreRouting = MicrosoftAspNetCoreRoutingRegex ;
46
+
47
+ [ GeneratedRegex ( MicrosoftAspNetCoreRoutingPattern ) ]
48
+ private static partial Regex MicrosoftAspNetCoreRoutingRegex { get ; }
49
+ #elif NET8_0
40
50
public static readonly StringOrRegex MicrosoftAspNetCoreRouting = MicrosoftAspNetCoreRoutingRegex ( ) ;
41
51
42
- [ GeneratedRegex ( MicrosoftAspNetCoreRoutingPattern , RegexOptions . Compiled ) ]
52
+ [ GeneratedRegex ( MicrosoftAspNetCoreRoutingPattern ) ]
43
53
private static partial Regex MicrosoftAspNetCoreRoutingRegex ( ) ;
44
54
#else
45
55
public static readonly StringOrRegex MicrosoftAspNetCoreRouting = new Regex ( MicrosoftAspNetCoreRoutingPattern , RegexOptions . Compiled ) ;
@@ -48,10 +58,15 @@ public static partial class BuiltInSystemDiagnosticsMeters
48
58
/// <summary>
49
59
/// Matches the built-in Microsoft.AspNetCore.Diagnostics metrics
50
60
/// </summary>
51
- #if NET8_0_OR_GREATER
61
+ #if NET9_0_OR_GREATER
62
+ public static readonly StringOrRegex MicrosoftAspNetCoreDiagnostics = MicrosoftAspNetCoreDiagnosticsRegex ;
63
+
64
+ [ GeneratedRegex ( MicrosoftAspNetCoreDiagnosticsPattern ) ]
65
+ private static partial Regex MicrosoftAspNetCoreDiagnosticsRegex { get ; }
66
+ #elif NET8_0
52
67
public static readonly StringOrRegex MicrosoftAspNetCoreDiagnostics = MicrosoftAspNetCoreDiagnosticsRegex ( ) ;
53
68
54
- [ GeneratedRegex ( MicrosoftAspNetCoreDiagnosticsPattern , RegexOptions . Compiled ) ]
69
+ [ GeneratedRegex ( MicrosoftAspNetCoreDiagnosticsPattern ) ]
55
70
private static partial Regex MicrosoftAspNetCoreDiagnosticsRegex ( ) ;
56
71
#else
57
72
public static readonly StringOrRegex MicrosoftAspNetCoreDiagnostics = new Regex ( MicrosoftAspNetCoreDiagnosticsPattern , RegexOptions . Compiled ) ;
@@ -60,10 +75,15 @@ public static partial class BuiltInSystemDiagnosticsMeters
60
75
/// <summary>
61
76
/// Matches the built-in Microsoft.AspNetCore.RateLimiting metrics
62
77
/// </summary>
63
- #if NET8_0_OR_GREATER
78
+ #if NET9_0_OR_GREATER
79
+ public static readonly StringOrRegex MicrosoftAspNetCoreRateLimiting = MicrosoftAspNetCoreRateLimitingRegex ;
80
+
81
+ [ GeneratedRegex ( MicrosoftAspNetCoreRateLimitingPattern ) ]
82
+ private static partial Regex MicrosoftAspNetCoreRateLimitingRegex { get ; }
83
+ #elif NET8_0
64
84
public static readonly StringOrRegex MicrosoftAspNetCoreRateLimiting = MicrosoftAspNetCoreRateLimitingRegex ( ) ;
65
85
66
- [ GeneratedRegex ( MicrosoftAspNetCoreRateLimitingPattern , RegexOptions . Compiled ) ]
86
+ [ GeneratedRegex ( MicrosoftAspNetCoreRateLimitingPattern ) ]
67
87
private static partial Regex MicrosoftAspNetCoreRateLimitingRegex ( ) ;
68
88
#else
69
89
public static readonly StringOrRegex MicrosoftAspNetCoreRateLimiting = new Regex ( MicrosoftAspNetCoreRateLimitingPattern , RegexOptions . Compiled ) ;
@@ -72,10 +92,15 @@ public static partial class BuiltInSystemDiagnosticsMeters
72
92
/// <summary>
73
93
/// Matches the built-in Microsoft.AspNetCore.HeaderParsing metrics
74
94
/// </summary>
75
- #if NET8_0_OR_GREATER
95
+ #if NET9_0_OR_GREATER
96
+ public static readonly StringOrRegex MicrosoftAspNetCoreHeaderParsing = MicrosoftAspNetCoreHeaderParsingRegex ;
97
+
98
+ [ GeneratedRegex ( MicrosoftAspNetCoreHeaderParsingPattern ) ]
99
+ private static partial Regex MicrosoftAspNetCoreHeaderParsingRegex { get ; }
100
+ #elif NET8_0
76
101
public static readonly StringOrRegex MicrosoftAspNetCoreHeaderParsing = MicrosoftAspNetCoreHeaderParsingRegex ( ) ;
77
102
78
- [ GeneratedRegex ( MicrosoftAspNetCoreHeaderParsingPattern , RegexOptions . Compiled ) ]
103
+ [ GeneratedRegex ( MicrosoftAspNetCoreHeaderParsingPattern ) ]
79
104
private static partial Regex MicrosoftAspNetCoreHeaderParsingRegex ( ) ;
80
105
#else
81
106
public static readonly StringOrRegex MicrosoftAspNetCoreHeaderParsing = new Regex ( MicrosoftAspNetCoreHeaderParsingPattern , RegexOptions . Compiled ) ;
@@ -84,10 +109,15 @@ public static partial class BuiltInSystemDiagnosticsMeters
84
109
/// <summary>
85
110
/// Matches the built-in Microsoft.AspNetCore.Server.Kestrel metrics
86
111
/// </summary>
87
- #if NET8_0_OR_GREATER
112
+ #if NET9_0_OR_GREATER
113
+ public static readonly StringOrRegex MicrosoftAspNetCoreServerKestrel = MicrosoftAspNetCoreServerKestrelRegex ;
114
+
115
+ [ GeneratedRegex ( MicrosoftAspNetCoreServerKestrelPattern ) ]
116
+ private static partial Regex MicrosoftAspNetCoreServerKestrelRegex { get ; }
117
+ #elif NET8_0
88
118
public static readonly StringOrRegex MicrosoftAspNetCoreServerKestrel = MicrosoftAspNetCoreServerKestrelRegex ( ) ;
89
119
90
- [ GeneratedRegex ( MicrosoftAspNetCoreServerKestrelPattern , RegexOptions . Compiled ) ]
120
+ [ GeneratedRegex ( MicrosoftAspNetCoreServerKestrelPattern ) ]
91
121
private static partial Regex MicrosoftAspNetCoreServerKestrelRegex ( ) ;
92
122
#else
93
123
public static readonly StringOrRegex MicrosoftAspNetCoreServerKestrel = new Regex ( MicrosoftAspNetCoreServerKestrelPattern , RegexOptions . Compiled ) ;
@@ -96,10 +126,15 @@ public static partial class BuiltInSystemDiagnosticsMeters
96
126
/// <summary>
97
127
/// Matches the built-in Microsoft.AspNetCore.Http.Connections metrics
98
128
/// </summary>
99
- #if NET8_0_OR_GREATER
129
+ #if NET9_0_OR_GREATER
130
+ public static readonly StringOrRegex MicrosoftAspNetCoreHttpConnections = MicrosoftAspNetCoreHttpConnectionsRegex ;
131
+
132
+ [ GeneratedRegex ( MicrosoftAspNetCoreHttpConnectionsPattern ) ]
133
+ private static partial Regex MicrosoftAspNetCoreHttpConnectionsRegex { get ; }
134
+ #elif NET8_0
100
135
public static readonly StringOrRegex MicrosoftAspNetCoreHttpConnections = MicrosoftAspNetCoreHttpConnectionsRegex ( ) ;
101
136
102
- [ GeneratedRegex ( MicrosoftAspNetCoreHttpConnectionsPattern , RegexOptions . Compiled ) ]
137
+ [ GeneratedRegex ( MicrosoftAspNetCoreHttpConnectionsPattern ) ]
103
138
private static partial Regex MicrosoftAspNetCoreHttpConnectionsRegex ( ) ;
104
139
#else
105
140
public static readonly StringOrRegex MicrosoftAspNetCoreHttpConnections = new Regex ( MicrosoftAspNetCoreHttpConnectionsPattern , RegexOptions . Compiled ) ;
@@ -108,10 +143,15 @@ public static partial class BuiltInSystemDiagnosticsMeters
108
143
/// <summary>
109
144
/// Matches the built-in Microsoft.Extensions.Diagnostics.HealthChecks metrics
110
145
/// </summary>
111
- #if NET8_0_OR_GREATER
146
+ #if NET9_0_OR_GREATER
147
+ public static readonly StringOrRegex MicrosoftExtensionsDiagnosticsHealthChecks = MicrosoftExtensionsDiagnosticsHealthChecksRegex ;
148
+
149
+ [ GeneratedRegex ( MicrosoftExtensionsDiagnosticsHealthChecksPattern ) ]
150
+ private static partial Regex MicrosoftExtensionsDiagnosticsHealthChecksRegex { get ; }
151
+ #elif NET8_0
112
152
public static readonly StringOrRegex MicrosoftExtensionsDiagnosticsHealthChecks = MicrosoftExtensionsDiagnosticsHealthChecksRegex ( ) ;
113
153
114
- [ GeneratedRegex ( MicrosoftExtensionsDiagnosticsHealthChecksPattern , RegexOptions . Compiled ) ]
154
+ [ GeneratedRegex ( MicrosoftExtensionsDiagnosticsHealthChecksPattern ) ]
115
155
private static partial Regex MicrosoftExtensionsDiagnosticsHealthChecksRegex ( ) ;
116
156
#else
117
157
public static readonly StringOrRegex MicrosoftExtensionsDiagnosticsHealthChecks = new Regex ( MicrosoftExtensionsDiagnosticsHealthChecksPattern , RegexOptions . Compiled ) ;
@@ -120,10 +160,15 @@ public static partial class BuiltInSystemDiagnosticsMeters
120
160
/// <summary>
121
161
/// Matches the built-in Microsoft.Extensions.Diagnostics.ResourceMonitoring metrics
122
162
/// </summary>
123
- #if NET8_0_OR_GREATER
163
+ #if NET9_0_OR_GREATER
164
+ public static readonly StringOrRegex MicrosoftExtensionsDiagnosticsResourceMonitoring = MicrosoftExtensionsDiagnosticsResourceMonitoringRegex ;
165
+
166
+ [ GeneratedRegex ( MicrosoftExtensionsDiagnosticsResourceMonitoringPattern ) ]
167
+ private static partial Regex MicrosoftExtensionsDiagnosticsResourceMonitoringRegex { get ; }
168
+ #elif NET8_0
124
169
public static readonly StringOrRegex MicrosoftExtensionsDiagnosticsResourceMonitoring = MicrosoftExtensionsDiagnosticsResourceMonitoringRegex ( ) ;
125
170
126
- [ GeneratedRegex ( MicrosoftExtensionsDiagnosticsResourceMonitoringPattern , RegexOptions . Compiled ) ]
171
+ [ GeneratedRegex ( MicrosoftExtensionsDiagnosticsResourceMonitoringPattern ) ]
127
172
private static partial Regex MicrosoftExtensionsDiagnosticsResourceMonitoringRegex ( ) ;
128
173
#else
129
174
public static readonly StringOrRegex MicrosoftExtensionsDiagnosticsResourceMonitoring = new Regex ( MicrosoftExtensionsDiagnosticsResourceMonitoringPattern , RegexOptions . Compiled ) ;
@@ -132,10 +177,15 @@ public static partial class BuiltInSystemDiagnosticsMeters
132
177
/// <summary>
133
178
/// Matches the built-in System.Net.NameResolution metrics
134
179
/// </summary>
135
- #if NET8_0_OR_GREATER
180
+ #if NET9_0_OR_GREATER
181
+ public static readonly StringOrRegex OpenTelemetryInstrumentationRuntime = OpenTelemetryInstrumentationRuntimeRegex ;
182
+
183
+ [ GeneratedRegex ( OpenTelemetryInstrumentationRuntimePattern ) ]
184
+ private static partial Regex OpenTelemetryInstrumentationRuntimeRegex { get ; }
185
+ #elif NET8_0
136
186
public static readonly StringOrRegex OpenTelemetryInstrumentationRuntime = OpenTelemetryInstrumentationRuntimeRegex ( ) ;
137
187
138
- [ GeneratedRegex ( OpenTelemetryInstrumentationRuntimePattern , RegexOptions . Compiled ) ]
188
+ [ GeneratedRegex ( OpenTelemetryInstrumentationRuntimePattern ) ]
139
189
private static partial Regex OpenTelemetryInstrumentationRuntimeRegex ( ) ;
140
190
#else
141
191
public static readonly StringOrRegex OpenTelemetryInstrumentationRuntime = new Regex ( OpenTelemetryInstrumentationRuntimePattern , RegexOptions . Compiled ) ;
@@ -144,10 +194,15 @@ public static partial class BuiltInSystemDiagnosticsMeters
144
194
/// <summary>
145
195
/// Matches the built-in System.Net.NameResolution metrics
146
196
/// </summary>
147
- #if NET8_0_OR_GREATER
197
+ #if NET9_0_OR_GREATER
198
+ public static readonly StringOrRegex SystemNetNameResolution = SystemNetNameResolutionRegex ;
199
+
200
+ [ GeneratedRegex ( SystemNetNameResolutionPattern ) ]
201
+ private static partial Regex SystemNetNameResolutionRegex { get ; }
202
+ #elif NET8_0
148
203
public static readonly StringOrRegex SystemNetNameResolution = SystemNetNameResolutionRegex ( ) ;
149
204
150
- [ GeneratedRegex ( SystemNetNameResolutionPattern , RegexOptions . Compiled ) ]
205
+ [ GeneratedRegex ( SystemNetNameResolutionPattern ) ]
151
206
private static partial Regex SystemNetNameResolutionRegex ( ) ;
152
207
#else
153
208
public static readonly StringOrRegex SystemNetNameResolution = new Regex ( SystemNetNameResolutionPattern , RegexOptions . Compiled ) ;
@@ -156,10 +211,15 @@ public static partial class BuiltInSystemDiagnosticsMeters
156
211
/// <summary>
157
212
/// Matches the built-in <see cref="System.Net.Http"/> metrics
158
213
/// </summary>
159
- #if NET8_0_OR_GREATER
214
+ #if NET9_0_OR_GREATER
215
+ public static readonly StringOrRegex SystemNetHttp = SystemNetHttpRegex ;
216
+
217
+ [ GeneratedRegex ( SystemNetHttpPattern ) ]
218
+ private static partial Regex SystemNetHttpRegex { get ; }
219
+ #elif NET8_0
160
220
public static readonly StringOrRegex SystemNetHttp = SystemNetHttpRegex ( ) ;
161
221
162
- [ GeneratedRegex ( SystemNetHttpPattern , RegexOptions . Compiled ) ]
222
+ [ GeneratedRegex ( SystemNetHttpPattern ) ]
163
223
private static partial Regex SystemNetHttpRegex ( ) ;
164
224
#else
165
225
public static readonly StringOrRegex SystemNetHttp = new Regex ( SystemNetHttpPattern , RegexOptions . Compiled ) ;
0 commit comments