From 5653454b0c70298416256f1f8ac5ec870f3038fd Mon Sep 17 00:00:00 2001 From: Yun-Ting Lin Date: Wed, 3 Aug 2022 12:40:01 -0700 Subject: [PATCH] nits: doc update, test cleanup (#3520) --- src/OpenTelemetry.Instrumentation.Http/README.md | 1 + .../HttpClientTests.netcore31.cs | 15 +++++++-------- 2 files changed, 8 insertions(+), 8 deletions(-) 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 {