File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -255,16 +255,15 @@ internal TracerProviderSdk(
255255 if ( state . Sources . Count > 0 )
256256 {
257257 // Validation of source name is already done in builder.
258- if ( state . Sources . Any ( s => WildcardHelper . ContainsWildcard ( s ) ) )
258+ if ( state . Sources . Any ( WildcardHelper . ContainsWildcard ) )
259259 {
260260 var regex = WildcardHelper . GetWildcardRegex ( state . Sources ) ;
261261
262262 // Function which takes ActivitySource and returns true/false to indicate if it should be subscribed to
263263 // or not.
264- activityListener . ShouldListenTo = activitySource =>
265- this . supportLegacyActivity ?
266- string . IsNullOrEmpty ( activitySource . Name ) || regex . IsMatch ( activitySource . Name ) :
267- regex . IsMatch ( activitySource . Name ) ;
264+ activityListener . ShouldListenTo = this . supportLegacyActivity ?
265+ ( activitySource ) => string . IsNullOrEmpty ( activitySource . Name ) || regex . IsMatch ( activitySource . Name ) :
266+ ( activitySource ) => regex . IsMatch ( activitySource . Name ) ;
268267 }
269268 else
270269 {
You can’t perform that action at this time.
0 commit comments