diff --git a/src/OpenTelemetry.Instrumentation.Http/README.md b/src/OpenTelemetry.Instrumentation.Http/README.md index b3d07df562d..41994615b26 100644 --- a/src/OpenTelemetry.Instrumentation.Http/README.md +++ b/src/OpenTelemetry.Instrumentation.Http/README.md @@ -46,6 +46,7 @@ requires adding the package to the application. ```csharp +using OpenTelemetry; using OpenTelemetry.Trace; public class Program diff --git a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.netcore31.cs b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.netcore31.cs index 05c39935426..903a76544e7 100644 --- a/test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.netcore31.cs +++ b/test/OpenTelemetry.Instrumentation.Http.Tests/HttpClientTests.netcore31.cs @@ -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; @@ -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 {