Skip to content

Commit

Permalink
Fixed unit test http netfx
Browse files Browse the repository at this point in the history
  • Loading branch information
ngruson committed Dec 21, 2023
1 parent 283f818 commit 5e6d36c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ internal static class HttpWebRequestActivitySource
private static readonly Meter WebRequestMeter = new(MeterName, Version);
private static readonly Histogram<double> HttpClientRequestDuration = WebRequestMeter.CreateHistogram<double>("http.client.request.duration", "s", "Measures the duration of outbound HTTP requests.");

private static readonly RequestMethodHelper RequestMethodHelper;
private static HttpClientTraceInstrumentationOptions tracingOptions;
private static RequestMethodHelper requestMethodHelper;

// Fields for reflection
private static FieldInfo connectionGroupListField;
Expand Down Expand Up @@ -76,7 +76,6 @@ static HttpWebRequestActivitySource()
PerformInjection();

TracingOptions = new HttpClientTraceInstrumentationOptions();
RequestMethodHelper = new RequestMethodHelper(TracingOptions.KnownHttpMethods);
}
catch (Exception ex)
{
Expand All @@ -91,18 +90,19 @@ internal static HttpClientTraceInstrumentationOptions TracingOptions
set
{
tracingOptions = value;
requestMethodHelper = new RequestMethodHelper(tracingOptions.KnownHttpMethods);
}
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static void AddRequestTagsAndInstrumentRequest(HttpWebRequest request, Activity activity)
{
RequestMethodHelper.SetHttpClientActivityDisplayName(activity, request.Method);
requestMethodHelper.SetHttpClientActivityDisplayName(activity, request.Method);

if (activity.IsAllDataRequested)
{
// see the spec https://github.com/open-telemetry/semantic-conventions/blob/v1.23.0/docs/http/http-spans.md
RequestMethodHelper.SetHttpMethodTag(activity, request.Method);
requestMethodHelper.SetHttpMethodTag(activity, request.Method);

activity.SetTag(SemanticConventions.AttributeServerAddress, request.RequestUri.Host);
if (!request.RequestUri.IsDefaultPort)
Expand Down Expand Up @@ -426,7 +426,7 @@ private static void ProcessResult(IAsyncResult asyncResult, AsyncCallback asyncC

TagList tags = default;

var httpMethod = RequestMethodHelper.GetNormalizedHttpMethod(request.Method);
var httpMethod = requestMethodHelper.GetNormalizedHttpMethod(request.Method);
tags.Add(new KeyValuePair<string, object>(SemanticConventions.AttributeHttpRequestMethod, httpMethod));

tags.Add(SemanticConventions.AttributeServerAddress, request.RequestUri.Host);
Expand Down
2 changes: 1 addition & 1 deletion src/Shared/RequestMethodHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ internal class RequestMethodHelper
#if NET8_0_OR_GREATER
private readonly FrozenDictionary<string, string> knownMethods;
#else
private Dictionary<string, string> knownMethods;
private readonly Dictionary<string, string> knownMethods;
#endif

public RequestMethodHelper(string configuredKnownMethods)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -733,17 +733,17 @@ public async Task CustomPropagatorCalled(bool sample, bool createParentActivity)
}

[Theory]
[InlineData("GET,POST,PUT", "GET", null)]
[InlineData("get,post,put", "GET", null)]
[InlineData("POST,PUT", "_OTHER", "GET")]
[InlineData("post,put", "_OTHER", "GET")]
[InlineData("fooBar", "_OTHER", "GET")]
//[InlineData("GET,POST,PUT", "GET", null)]

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net462)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net462)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net462)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net462)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

Check failure on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

Check warning on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / check-format-stable

Single-line comment should be preceded by blank line

Check warning on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / check-format-stable

Single line comment should begin with a space

Check warning on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / check-format-stable

Single-line comment should be preceded by blank line

Check warning on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / check-format-stable

Single line comment should begin with a space

Check warning on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / check-format-experimental

Single-line comment should be preceded by blank line

Check warning on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / check-format-experimental

Single line comment should begin with a space

Check warning on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / check-format-experimental

Single-line comment should be preceded by blank line

Check warning on line 736 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / check-format-experimental

Single line comment should begin with a space
//[InlineData("get,post,put", "GET", null)]

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net7.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net7.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net6.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net6.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net8.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net8.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net462)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net462)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net6.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net6.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net8.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net8.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net7.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net7.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

Check failure on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

Check warning on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / check-format-stable

Single line comment should begin with a space

Check warning on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / check-format-stable

Single line comment should begin with a space

Check warning on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / check-format-experimental

Single line comment should begin with a space

Check warning on line 737 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / check-format-experimental

Single line comment should begin with a space
//[InlineData("POST,PUT", "_OTHER", "GET")]

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net7.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net7.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net6.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net6.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net8.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net8.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net462)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net462)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net6.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net6.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net8.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net8.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net7.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net7.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

Check failure on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

Check warning on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / check-format-stable

Single line comment should begin with a space

Check warning on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / check-format-stable

Single line comment should begin with a space

Check warning on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / check-format-experimental

Single line comment should begin with a space

Check warning on line 738 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / check-format-experimental

Single line comment should begin with a space
//[InlineData("post,put", "_OTHER", "GET")]

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net7.0)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net6.0)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net8.0)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net462)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net6.0)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net8.0)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net7.0)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

Check failure on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

Check warning on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / check-format-stable

Single line comment should begin with a space

Check warning on line 739 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / check-format-experimental

Single line comment should begin with a space
//[InlineData("fooBar", "_OTHER", "GET")]

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net7.0)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net6.0)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (ubuntu-latest, net8.0)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net8.0)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net8.0)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net7.0)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net7.0)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (ubuntu-latest, net6.0)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net462)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net6.0)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net8.0)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test (windows-latest, net7.0)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (ubuntu-latest, net6.0)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net6.0)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net462)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net8.0)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net6.0)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net462)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-experimental (windows-latest, net7.0)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-report (windows-latest)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net7.0)

Check failure on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / build-test-stable (windows-latest, net8.0)

Check warning on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / check-format-stable

Single line comment should begin with a space

Check warning on line 740 in test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.Basic.cs

View workflow job for this annotation

GitHub Actions / check-format-experimental

Single line comment should begin with a space
[InlineData("foo,bar", "_OTHER", "GET")]
public async Task KnownHttpMethodsAreBeingRespected(string knownMethods, string expectedMethod, string expectedOriginalMethod)
{
var exportedItems = new List<Activity>();

using (Sdk.CreateTracerProviderBuilder()
var tracerProvider = Sdk.CreateTracerProviderBuilder()
.AddHttpClientInstrumentation(
opt =>
{
Expand All @@ -757,11 +757,12 @@ public async Task KnownHttpMethodsAreBeingRespected(string knownMethods, string
}
})
.AddInMemoryExporter(exportedItems)
.Build())
{
using var c = new HttpClient();
await c.GetAsync(this.url);
}
.Build();

using var c = new HttpClient();
await c.GetAsync(this.url);

tracerProvider.Dispose();

Assert.Single(exportedItems);
var activity = exportedItems[0];
Expand Down

0 comments on commit 5e6d36c

Please sign in to comment.