Skip to content

Commit

Permalink
nits: doc update, test cleanup (#3520)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yun-Ting authored Aug 3, 2022
1 parent c1df3a7 commit 5653454
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/OpenTelemetry.Instrumentation.Http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ requires adding the package
to the application.

```csharp
using OpenTelemetry;
using OpenTelemetry.Trace;

public class Program
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Reflection;
Expand Down Expand Up @@ -64,13 +63,13 @@ public async Task HttpOutCallsAreCollectedSuccessfullyAsync(HttpTestData.HttpOut
using (serverLifeTime)

using (Sdk.CreateTracerProviderBuilder()
.AddHttpClientInstrumentation((opt) =>
{
opt.Enrich = ActivityEnrichment;
opt.RecordException = tc.RecordException ?? false;
})
.AddProcessor(processor.Object)
.Build())
.AddHttpClientInstrumentation((opt) =>
{
opt.Enrich = ActivityEnrichment;
opt.RecordException = tc.RecordException ?? false;
})
.AddProcessor(processor.Object)
.Build())
{
try
{
Expand Down

0 comments on commit 5653454

Please sign in to comment.