nits: doc update, test cleanup (#3520)

This commit is contained in:
Yun-Ting Lin 2022-08-03 12:40:01 -07:00 committed by GitHub
parent c1df3a7577
commit 5653454b0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -46,6 +46,7 @@ requires adding the package
to the application. to the application.
```csharp ```csharp
using OpenTelemetry;
using OpenTelemetry.Trace; using OpenTelemetry.Trace;
public class Program public class Program

View File

@ -18,7 +18,6 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.Immutable; using System.Collections.Immutable;
using System.Diagnostics; using System.Diagnostics;
using System.IO;
using System.Linq; using System.Linq;
using System.Net.Http; using System.Net.Http;
using System.Reflection; using System.Reflection;
@ -64,13 +63,13 @@ namespace OpenTelemetry.Instrumentation.Http.Tests
using (serverLifeTime) using (serverLifeTime)
using (Sdk.CreateTracerProviderBuilder() using (Sdk.CreateTracerProviderBuilder()
.AddHttpClientInstrumentation((opt) => .AddHttpClientInstrumentation((opt) =>
{ {
opt.Enrich = ActivityEnrichment; opt.Enrich = ActivityEnrichment;
opt.RecordException = tc.RecordException ?? false; opt.RecordException = tc.RecordException ?? false;
}) })
.AddProcessor(processor.Object) .AddProcessor(processor.Object)
.Build()) .Build())
{ {
try try
{ {