Skip to content

Commit

Permalink
feature: Shorten the operationname of HttpClient ExistSpan (#354)
Browse files Browse the repository at this point in the history
Co-authored-by: 郭刚平 <gangping.guo@xiaobao100.com>
  • Loading branch information
snakorse and 郭刚平 authored Nov 24, 2020
1 parent 7db11b0 commit 78f16bc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*
*/

using System;
using System.Linq;
using System.Net.Http;
using SkyApm.Common;
Expand Down Expand Up @@ -43,7 +44,7 @@ public bool OnlyMatch(HttpRequestMessage request)

public void Handle(ITracingContext tracingContext, HttpRequestMessage request)
{
var operationName = request.RequestUri.ToString();
var operationName = request.RequestUri.GetLeftPart(UriPartial.Path);
var shouldStopPropagation = _httpClientDiagnosticConfig.StopHeaderPropagationPaths != null
&& _httpClientDiagnosticConfig.StopHeaderPropagationPaths
.Any(pattern => FastPathMatcher.Match(pattern, operationName));
Expand Down

0 comments on commit 78f16bc

Please sign in to comment.