Skip to content

Commit

Permalink
Fix conditional compilation in aspnetcore instrumentation (#3025)
Browse files Browse the repository at this point in the history
  • Loading branch information
cijothomas authored Mar 14, 2022
1 parent 191df62 commit 0254d34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ private static string GetUri(HttpRequest request)
var queryString = request.QueryString.Value ?? string.Empty;
var length = scheme.Length + Uri.SchemeDelimiter.Length + host.Length + pathBase.Length
+ path.Length + queryString.Length;
#if NETSTANDARD2_1
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
return string.Create(length, (scheme, host, pathBase, path, queryString), (span, parts) =>
{
CopyTo(ref span, parts.scheme);
Expand Down

0 comments on commit 0254d34

Please sign in to comment.