Skip to content

Commit

Permalink
Merge branch 'main' into reyang/wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
cijothomas authored Feb 10, 2022
2 parents dd5a953 + 7826269 commit ad683fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ public async Task HttpClientInstrumentationCorrelationAndBaggage()
.Build())
{
using var c = new HttpClient();
using var r = await c.GetAsync("https://opentelemetry.io/").ConfigureAwait(false);
using var r = await c.GetAsync(this.url).ConfigureAwait(false);
}

Assert.Equal(5, activityProcessor.Invocations.Count);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@ public async Task DebugIndividualTestAsync()
[Fact]
public async Task CheckEnrichmentWhenSampling()
{
await CheckEnrichment(new AlwaysOffSampler(), 0).ConfigureAwait(false);
await CheckEnrichment(new AlwaysOnSampler(), 2).ConfigureAwait(false);
await CheckEnrichment(new AlwaysOffSampler(), 0, this.url).ConfigureAwait(false);
await CheckEnrichment(new AlwaysOnSampler(), 2, this.url).ConfigureAwait(false);
}

private static async Task CheckEnrichment(Sampler sampler, int expect)
private static async Task CheckEnrichment(Sampler sampler, int expect, string url)
{
Counter = 0;
var processor = new Mock<BaseProcessor<Activity>>();
Expand All @@ -236,7 +236,7 @@ private static async Task CheckEnrichment(Sampler sampler, int expect)
.Build())
{
using var c = new HttpClient();
using var r = await c.GetAsync("https://opentelemetry.io/").ConfigureAwait(false);
using var r = await c.GetAsync(url).ConfigureAwait(false);
}

Assert.Equal(expect, Counter);
Expand Down

0 comments on commit ad683fd

Please sign in to comment.