nits: doc update, test cleanup (#3520)
This commit is contained in:
parent
c1df3a7577
commit
5653454b0c
|
|
@ -46,6 +46,7 @@ requires adding the package
|
|||
to the application.
|
||||
|
||||
```csharp
|
||||
using OpenTelemetry;
|
||||
using OpenTelemetry.Trace;
|
||||
|
||||
public class Program
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ using System;
|
|||
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 @@ namespace OpenTelemetry.Instrumentation.Http.Tests
|
|||
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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue