Skip to content

Commit

Permalink
Merge branch 'main' into reyang/metrics-export-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
reyang authored Sep 14, 2021
2 parents 8761dbe + 3cc0f7e commit b629336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenTelemetry/Trace/TracerProviderSdk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ internal TracerProviderSdk(

if (wildcardMode)
{
var pattern = "^(" + string.Join("|", from name in sources select '(' + Regex.Escape(name).Replace("\\*", ".*") + ')') + ")$";
var pattern = '^' + string.Join("|", from name in sources select "(?:" + Regex.Escape(name).Replace("\\*", ".*") + ')') + '$';
var regex = new Regex(pattern, RegexOptions.Compiled | RegexOptions.IgnoreCase);

// Function which takes ActivitySource and returns true/false to indicate if it should be subscribed to
Expand Down

0 comments on commit b629336

Please sign in to comment.